Skip to content

Commit

Permalink
Update github actions due to deprecation (#109)
Browse files Browse the repository at this point in the history
* update deprecated version

* updating action usage
  • Loading branch information
parithosh authored Jan 7, 2025
1 parent 875882d commit c7b0aba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ 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
deploy:
needs: releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v2
Expand All @@ -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
Expand Down

0 comments on commit c7b0aba

Please sign in to comment.