diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b2e878..7d9b802 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,15 +8,15 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2.0.0 + uses: actions/checkout@v3 - - name: setup .net core - uses: actions/setup-dotnet@v1.7.2 + - name: Setup dotnet + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.100 + dotnet-version: '8.*' - name: build run: dotnet build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fa609b..698a67f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,16 +22,16 @@ on: jobs: push_to_registry: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion != 'failure' }} steps: # Checkout latest or specific tag - name: checkout if: ${{ github.event.inputs.version == '' || github.event.inputs.version == 'latest' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: checkout tag if: ${{ github.event.inputs.version != '' && github.event.inputs.version != 'latest' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: refs/tags/${{ github.event.inputs.version }} @@ -51,7 +51,7 @@ jobs: # Authenticate, build and push to GitHub Container Registry (ghcr.io) - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -59,7 +59,7 @@ jobs: # Build and push new docker image, skip for manual redeploy other than 'latest' - name: Build and push Docker images - uses: docker/build-push-action@v2.2.2 + uses: docker/build-push-action@v6 if: ${{ github.event.inputs.version == '' || github.event.inputs.version == 'latest' }} with: file: Dockerfile