File tree Expand file tree Collapse file tree 1 file changed +21
-8
lines changed
Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,35 @@ jobs:
3535 path : ./github_artifacts
3636 deploy :
3737 needs : [build]
38+ # Allows you to run this workflow manually from the Actions tab
39+ workflow_dispatch :
40+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
3841 permissions :
39- contents : write
42+ contents : read
43+ pages : write
44+ id-token : write
45+ concurrency :
46+ group : " pages"
47+ cancel-in-progress : false
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
4051 runs-on : ubuntu-latest
4152 steps :
4253 - name : Checkout
4354 uses : actions/checkout@v4
55+ - name : Setup Pages
56+ uses : actions/configure-pages@v5
4457 - uses : actions/download-artifact@v4
4558 with :
4659 path : github_artifacts
4760 - name : move
4861 run : mkdir -p github_deploy && mv github_artifacts/*/* github_deploy
49- - name : deploy on orphan branch
50- uses : peaceiris/ actions-gh- pages@v4
62+ - name : Upload artifact
63+ uses : actions/upload- pages-artifact@v3
5164 with :
52- github_token : ${{ secrets.GITHUB_TOKEN }}
53- publish_dir : ./ github_deploy
54- publish_branch : build
55- force_orphan : true
56-
65+ # Upload entire repository
66+ path : ' github_deploy'
67+ - name : Deploy to GitHub Pages
68+ id : deployment
69+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments