File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [ pager ]
88 workflow_dispatch :
99
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : " pages"
18+ cancel-in-progress : false
19+
1020jobs :
1121 build :
1222 runs-on : ubuntu-latest
@@ -40,26 +50,21 @@ jobs:
4050 overwrite : true
4151
4252 deploy :
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
4356 needs : build
44- if : github.ref == 'refs/heads/main ' && github.event_name == 'push'
57+ if : github.ref == 'refs/heads/pager ' && github.event_name == 'push' # Deploy only on push to 'pager '
4558 runs-on : ubuntu-latest
46-
4759 steps :
48- - name : Download build artifacts
49- uses : actions/download-artifact@v4
60+ - name : Checkout
61+ uses : actions/checkout@v4
62+ - name : Setup Pages
63+ uses : actions/configure-pages@v5
64+ - name : Upload artifact
65+ uses : actions/upload-pages-artifact@v3
5066 with :
51- name : dist
52- path : dist
53- merge-multiple : true
54-
67+ path : ' ./dist' # Upload the 'dist' folder
5568 - name : Deploy to GitHub Pages
56- uses : peaceiris/actions-gh-pages@v3
57- with :
58- github_token : ${{ secrets.GITHUB_TOKEN }}
59- publish_dir : ./dist
60- cname : blockhub.pymmdrza.com
61- enable_jekyll : false
62- force_orphan : true
63- user_name : ' github-actions[bot]'
64- user_email : ' github-actions[bot]@users.noreply.github.com'
65- commit_message : ' Deploy to GitHub Pages'
69+ id : deployment
70+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments