File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,15 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches : [ main ]
6- pull_request :
7- branches : [ main ]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
815
916jobs :
1017 build-and-deploy :
@@ -30,10 +37,14 @@ jobs:
3037 run : |
3138 touch out/.nojekyll
3239
33- - name : Deploy to GitHub Pages
34- if : github.ref == 'refs/heads/main'
35- uses : peaceiris/actions-gh-pages@v3
40+ - name : Setup Pages
41+ uses : actions/configure-pages@v4
42+
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v3
3645 with :
37- github_token : ${{ secrets.GITHUB_TOKEN }}
38- publish_dir : ./out
39- cname : quantumgraph.github.io
46+ path : ./out
47+
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments