From c7b0abad0d0b995915cde8d2e5ebcd650de5b163 Mon Sep 17 00:00:00 2001 From: Parithosh Jayanthi Date: Tue, 7 Jan 2025 22:13:51 +0100 Subject: [PATCH] Update github actions due to deprecation (#109) * update deprecated version * updating action usage --- .github/workflows/deploy.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a15647d..26bacf6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,9 +27,9 @@ jobs: file: 'builder-oapi.json' target: 'deploy/releases/${{ matrix.release }}/builder-oapi.json' - name: Save releases (artifact) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: releases + name: releases-${{ matrix.release }} retention-days: 7 path: | deploy/releases @@ -37,7 +37,7 @@ jobs: needs: releases runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: actions/setup-node@v2 @@ -49,14 +49,15 @@ jobs: cp -r assets ./deploy cp index.html ./deploy - name: Restore releases - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: releases path: deploy/releases + pattern: releases-* + merge-multiple: true - name: Bundle spec run: "swagger-cli bundle ./builder-oapi.yaml -r -t yaml -o ./deploy/builder-oapi.yaml" - name: Publish to Github Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./deploy