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