File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 5
5
- master
6
6
7
7
jobs :
8
- deploy :
8
+ build :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v3
@@ -19,16 +19,23 @@ jobs:
19
19
- name : Generate Book
20
20
run : |
21
21
./generate-book.py
22
- - name : Deploy GitHub Pages
23
- run : |
24
- git worktree add gh-pages gh-pages
25
- git config user.name "Deploy from CI"
26
- git config user.email ""
27
- cd gh-pages
28
- # Delete the ref to avoid keeping history.
29
- git update-ref -d refs/heads/gh-pages
30
- rm -rf *
31
- mv ../book/* .
32
- git add .
33
- git commit -m "Deploy $GITHUB_SHA to gh-pages"
34
- git push --force
22
+ - name : Upload Artifact
23
+ uses : actions/upload-pages-artifact@v1.0.8
24
+ with :
25
+ path : ./book
26
+
27
+ deploy :
28
+ needs : build
29
+
30
+ permissions :
31
+ pages : write
32
+ id-token : write
33
+
34
+ environment :
35
+ name : github-pages
36
+ url : ${{ steps.deployment.outputs.page_url }}
37
+
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - id : deployment
41
+ uses : actions/deploy-pages@v2.0.0
You can’t perform that action at this time.
0 commit comments