Skip to content

Commit

Permalink
fetch gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwart committed Sep 12, 2024
1 parent 73ec0de commit 154962d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ jobs:
- name: Render
run: |
quarto render
- name: Publish
run: |
git config user.name github-actions
git config user.email [email protected]
git checkout gh-pages
git fetch origin gh-pages # Fetch the gh-pages branch
git checkout gh-pages || git checkout --orphan gh-pages # Try to checkout or create if not exist
cp -r docs/* .
git add .
git commit -a -m "update pages" || echo "nothing to commit"
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY} gh-pages

0 comments on commit 154962d

Please sign in to comment.