File tree Expand file tree Collapse file tree 1 file changed +30
-10
lines changed Expand file tree Collapse file tree 1 file changed +30
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
name : Build and Deploy
3
+
2
4
on :
3
5
push :
4
6
branches :
5
7
- master
6
8
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : " pages"
16
+ cancel-in-progress : true
17
+
7
18
jobs :
8
- build-and-deploy :
19
+ build :
9
20
runs-on : ubuntu-latest
10
- if : github.repository == 'djangogirls/tutorial'
11
21
steps :
12
22
- name : Checkout
13
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v3
14
24
with :
15
25
persist-credentials : false
16
-
17
26
- name : Install and Build
18
27
run : |
19
28
npm install
20
29
npx honkit build
21
-
22
- - name : Deploy
23
- uses : JamesIves/github-pages-deploy-action@releases/v3
30
+ - name : Upload artifact
31
+ uses : actions/upload-pages-artifact@v1
24
32
with :
25
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
- BRANCH : gh-pages
27
- FOLDER : _book
33
+ path : _book
34
+
35
+ deploy :
36
+ needs : build
37
+ permissions :
38
+ pages : write
39
+ id-token : write
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - name : Deploy to GitHub Pages
46
+ id : deployment
47
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments