File tree 1 file changed +22
-4
lines changed
1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
9
9
jobs :
10
- deploy :
10
+ build :
11
11
runs-on : ubuntu-24.04
12
- concurrency :
13
- group : ${{ github.workflow }}-${{ github.ref }}
14
12
steps :
15
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
16
14
17
15
- name : Setup mdBook
18
16
uses : peaceiris/actions-mdbook@v2
21
19
22
20
- run : mdbook build
23
21
22
+ - name : Upload static files as artifact
23
+ id : deployment
24
+ uses : actions/upload-pages-artifact@v3
25
+ with :
26
+ path : ./book/
27
+
24
28
- name : Deploy
25
29
uses : peaceiris/actions-gh-pages@v3
26
30
if : ${{ github.ref == 'refs/heads/main' }}
27
31
with :
28
32
github_token : ${{ secrets.GITHUB_TOKEN }}
29
33
publish_dir : ./book
34
+
35
+ deploy :
36
+ environment :
37
+ name : github-pages
38
+ url : ${{ steps.deployment.outputs.page_url }}
39
+ permissions :
40
+ pages : write # to deploy to Pages
41
+ id-token : write # to verify the deployment originates from an appropriate source
42
+ runs-on : ubuntu-latest
43
+ needs : build
44
+ steps :
45
+ - name : Deploy to GitHub Pages
46
+ id : deployment
47
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments