From: miniduikboot Date: Wed, 24 Jan 2024 20:37:37 +0000 (+0100) Subject: Update Github actions X-Git-Tag: v1.9.0~3^2 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=165621a8ccd639f10cbcba815c11dc79b1fba243;p=rhonda%2Fimpostor.git Update Github actions - Update versions to the latest one - Get rid of .gitmodules as we dumped that years ago - Change ::set-output to output files as the former is slated for removal --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab75f97..7bf275e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,13 +5,11 @@ on: paths: - '.github/workflows/ci.yml' - 'src/**/**' - - '.gitmodules' - 'build.cake' pull_request: paths: - '.github/workflows/ci.yml' - 'src/**/**' - - '.gitmodules' - 'build.cake' jobs: @@ -20,9 +18,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 - with: - submodules: true + uses: actions/checkout@v4 - uses: actions/cache@v3 with: @@ -54,4 +50,4 @@ jobs: - name: Push NuGet package if: github.ref_type == 'tag' run: | - dotnet nuget push ./build/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_IMPOSTOR }} \ No newline at end of file + dotnet nuget push ./build/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_IMPOSTOR }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 51b6126..8a67357 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -6,7 +6,6 @@ on: paths: - 'src/Impostor.Server/**' - 'src/Impostor.Shared/**' - - '.gitmodules' - '.github/workflows/docker.yml' - 'Dockerfile' tags: @@ -15,7 +14,6 @@ on: paths: - 'src/Impostor.Server/**' - 'src/Impostor.Shared/**' - - '.gitmodules' - '.github/workflows/docker.yml' - 'Dockerfile' @@ -25,9 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - with: - submodules: true + uses: actions/checkout@v4 - name: Prepare id: prep run: | @@ -48,14 +44,14 @@ jobs: if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then TAGS="$TAGS,${DOCKER_IMAGE}:latest" fi - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=versionsuffix::${VERSIONSUFFIX} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') + echo name=version::${VERSION} >> $GITHUB_OUTPUT + echo name=tags::${TAGS} >> $GITHUB_OUTPUT + echo name=versionsuffix::${VERSIONSUFFIX} >> $GITHUB_OUTPUT + echo name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') >> $GITHUB_OUTPUT - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub if: github.event_name != 'pull_request' uses: docker/login-action@v1 @@ -63,7 +59,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29..0000000