use gh pages

This commit is contained in:
Jörn Guy Süß 2025-08-04 22:18:58 +10:00
parent 850257f977
commit 5277cd16f4

View File

@ -31,27 +31,9 @@ jobs:
- name: Build site
run: bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to gh_pages branch
uses: peaceiris/actions-gh-pages@v4
with:
path: ./website/_site
deploy:
needs: build
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/_site
publish_branch: gh_pages