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

@ -30,28 +30,10 @@ jobs:
- name: Build site - name: Build site
run: bundle exec jekyll build run: bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./website/_site
deploy: - name: Deploy to gh_pages branch
needs: build uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment publish_dir: ./website/_site
permissions: publish_branch: gh_pages
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