Skip to content

Commit

Permalink
fix: gh-pages deployment switch from manually push to artifacts/deplo…
Browse files Browse the repository at this point in the history
…y actions to a `gh-pages` branch
  • Loading branch information
panaC committed Dec 2, 2024
1 parent 7e557e3 commit d2b6dca
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ jobs:
ls -laR ./build-demo
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: github.ref == 'refs/heads/main'
with:
path: "./build-demo"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build-demo
publish_branch: gh-pages # default: gh-pages
destination_dir: ./
enable_jekyll: true # yes for README.md

0 comments on commit d2b6dca

Please sign in to comment.