]> git.deb.at Git - rhonda/impostor.git/commitdiff
Update Github actions
authorminiduikboot <mini@duikbo.at>
Wed, 24 Jan 2024 20:37:37 +0000 (21:37 +0100)
committerminiduikboot <mini@duikbo.at>
Wed, 24 Jan 2024 20:37:37 +0000 (21:37 +0100)
- 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

.github/workflows/ci.yml
.github/workflows/docker.yml
.gitmodules [deleted file]

index ab75f975eb6f528259ca2cc171f9f3a33fc5b556..7bf275e0b2484d40248b495d1d2eafb89a4a81f0 100644 (file)
@@ -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 }}
index 51b61260afde9ee09307554343558d09a74e5ee1..8a67357bd15f0445f2f442efd7abbf3977b666f6 100644 (file)
@@ -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 (file)
index e69de29..0000000