File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ main ]
88
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
915# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1016# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1117concurrency :
@@ -15,6 +21,12 @@ concurrency:
1521jobs :
1622 build :
1723 runs-on : ubuntu-latest
24+
25+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
26+ permissions :
27+ contents : read
28+ pages : write
29+ id-token : write
1830
1931 strategy :
2032 matrix :
@@ -76,13 +88,17 @@ jobs:
7688 mkdir -p out
7789 touch out/.nojekyll
7890
79- - name : Deploy to GitHub Pages
80- uses : peaceiris/actions-gh-pages@v3
91+ - name : Setup Pages
92+ uses : actions/configure-pages@v4
93+ if : github.ref == 'refs/heads/main'
94+
95+ - name : Upload artifact
96+ uses : actions/upload-pages-artifact@v2
8197 if : github.ref == 'refs/heads/main'
8298 with :
83- github_token : ${{ secrets.GITHUB_TOKEN }}
84- publish_dir : ./out
85- # Enable Jekyll processing to be disabled
86- enable_jekyll : false
87- # Add CNAME if using custom domain
88- # cname: your-domain.com
99+ path : ./out
100+
101+ - name : Deploy to GitHub Pages
102+ id : deployment
103+ uses : actions/deploy-pages@v3
104+ if : github.ref == 'refs/heads/main'
You can’t perform that action at this time.
0 commit comments