Skip to content

Commit

Permalink
(ci/github): Add gh-pages step to build job
Browse files Browse the repository at this point in the history
  • Loading branch information
jcxldn committed Sep 9, 2023
1 parent dd87fc8 commit dd6d716
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
permissions:
checks: write # Create checks for commits
pull-requests: write # Add comments to PRs
contents: write # Push changes (to gh-pages)
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -80,3 +81,9 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

- name: Push to "gh-pages" (if push on main)
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: public

0 comments on commit dd6d716

Please sign in to comment.