File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 9
9
build-deploy :
10
10
runs-on : ubuntu-latest
11
11
12
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
13
+ permissions :
14
+ pages : write # to deploy to Pages
15
+ id-token : write # to verify the deployment originates from an appropriate sourc
16
+
12
17
steps :
13
18
- name : Checkout 🛎️
14
- uses : actions/checkout@master
19
+ uses : actions/checkout@v4
15
20
with :
16
21
persist-credentials : false
17
22
23
28
env :
24
29
NODE_ENV : production
25
30
26
- - name : Deploy to GH Pages 🚀
27
- if : ${{ github.event_name != 'pull_request' }}
28
- uses : peaceiris/actions-gh-pages@v3
31
+ - name : Deploy to GitHub Pages
32
+ uses : peaceiris/actions-gh-pages@v4
29
33
with :
30
- github_token : ${{ secrets.GITHUB_TOKEN }}
31
- publish_dir : demo
34
+ github_token : ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir : ./ demo
You can’t perform that action at this time.
0 commit comments