Skip to content

Commit

Permalink
refactor: use actions/upload-pages-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Aug 18, 2024
1 parent d3dc260 commit bdf4b15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ jobs:
CDNJS_BASE_URL: https://cdnjs.baoshuo.ren/ajax/libs

- name: Upload Build Output to Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-pages-artifact@v4
with:
name: dist
path: ${{ github.workspace }}/out/
if-no-files-found: error
retention-days: 30

deploy-gh-pages:
name: Deploy Site to GitHub Pages
Expand All @@ -69,7 +68,6 @@ jobs:
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: dist
## Is this attempting to deploy a pull request as a GitHub Pages preview site?
## NOTE: This feature is only in alpha currently and is not available to the public!
# preview: ${{ github.event_name != 'push' }}
preview: false # ${{ github.event_name != 'push' }}

0 comments on commit bdf4b15

Please sign in to comment.