From 5277cd16f4e98fb60f64f9252e3d3fc64b43b548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Guy=20S=C3=BC=C3=9F?= Date: Mon, 4 Aug 2025 22:18:58 +1000 Subject: [PATCH] use gh pages --- .github/workflows/jekyll.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index b552554..f85e115 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -30,28 +30,10 @@ jobs: - name: Build site run: bundle exec jekyll build - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - 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 \ No newline at end of file + - name: Deploy to gh_pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./website/_site + publish_branch: gh_pages \ No newline at end of file