File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy GitHub Pages
2+
3+ # Publishes the static site in website/ to the gh-pages branch
4+ # whenever the website (or this workflow) changes on master.
5+
6+ on :
7+ push :
8+ branches : [master]
9+ paths :
10+ - ' website/**'
11+ - ' .github/workflows/pages.yml'
12+ workflow_dispatch :
13+
14+ permissions :
15+ contents : write
16+
17+ concurrency :
18+ group : pages-deploy
19+ cancel-in-progress : true
20+
21+ jobs :
22+ deploy :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+
28+ - name : Publish website/ to gh-pages
29+ uses : peaceiris/actions-gh-pages@v4
30+ with :
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ publish_dir : ./website
33+ publish_branch : gh-pages
34+ # keep_files is false: gh-pages will mirror website/ exactly
35+ user_name : ' github-actions[bot]'
36+ user_email : ' github-actions[bot]@users.noreply.github.com'
37+ commit_message : ' Deploy website from ${{ github.sha }}'
You can’t perform that action at this time.
0 commit comments