File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -70,25 +70,21 @@ jobs:
7070 - name : Build Pagefind search index
7171 run : npx pagefind --site _site --output-path _site/pagefind
7272
73- - name : Upload artifact
73+ - name : Upload artifact for PR checks
74+ if : github.event_name == 'pull_request'
7475 uses : actions/upload-pages-artifact@v3
7576 with :
7677 path : ./_site
7778
78- deploy :
79- if : github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'cypherpunks-core/cypherpunks-core.github.io'
80- needs : build
81- runs-on : ubuntu-latest
82- permissions :
83- pages : write
84- id-token : write
85- environment :
86- name : github-pages
87- url : ${{ steps.deployment.outputs.page_url }}
88- steps :
8979 - name : Deploy to GitHub Pages
90- id : deployment
91- uses : actions/deploy-pages@v4
80+ if : github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'cypherpunks-core/cypherpunks-core.github.io'
81+ uses : peaceiris/actions-gh-pages@v4
82+ with :
83+ github_token : ${{ secrets.GITHUB_TOKEN }}
84+ publish_dir : ./_site
85+ publish_branch : gh-pages
86+ user_name : ' github-actions[bot]'
87+ user_email : ' github-actions[bot]@users.noreply.github.com'
9288
9389 # Quality Checks (run on PRs)
9490 quality-check :
You can’t perform that action at this time.
0 commit comments