Skip to content

Commit

Permalink
ci: use actions/upload-pages-artifact@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Dec 4, 2024
1 parent 61e1fb4 commit 9d79f1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ jobs:
env:
DOCS_BASE_URL: /${{ github.event.repository.name }}/
DOCS_HOME_URL: https://cloudpss.net/
run: pnpm build
- name: Upload build artifact
run: |
pnpm build
touch build/.nojekyll
- name: Upload static files as artifact
id: deployment
if: (!cancelled())
uses: actions/upload-artifact@v4
uses: actions/upload-pages-artifact@v3
with:
name: build
path: build
path: build/

deploy:
needs: build
Expand All @@ -57,5 +59,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: build

0 comments on commit 9d79f1b

Please sign in to comment.