This repository was archived by the owner on Oct 27, 2023. It is now read-only.
File tree 3 files changed +22
-79
lines changed
3 files changed +22
-79
lines changed Original file line number Diff line number Diff line change
1
+ # This needs the following setting:
2
+ # Setttings > Actions > General > Workflow permissions
3
+ # change to "Read and write permissions"
1
4
name : github pages
2
5
3
6
on :
4
7
push :
5
8
branches :
6
9
- master
10
+ workflow_dispatch : null
7
11
8
12
jobs :
9
13
deploy :
10
14
runs-on : ubuntu-latest
11
15
steps :
12
16
- uses : actions/checkout@v4
17
+ with :
18
+ submodules : true # could be useful in the future
19
+ fetch-depth : 0 # we just need the latest commit
13
20
14
21
- name : Setup mdBook
15
22
uses : peaceiris/actions-mdbook@v1
16
23
with :
17
24
mdbook-version : ' latest'
18
25
19
- - run : mdbook build
26
+ - name : Build mdbook
27
+ working-directory : ./cookbook
28
+ run : mdbook build --dest-dir "../site/static/book"
29
+
30
+ - name : Setup Hugo
31
+ uses : peaceiris/actions-hugo@v2
32
+ with :
33
+ hugo-version : " latest"
34
+
35
+ - name : Build Hugo
36
+ working-directory : ./site
37
+ run : hugo --minify
20
38
21
39
- name : Deploy
22
40
uses : peaceiris/actions-gh-pages@v3
41
+ if : github.ref == 'refs/heads/master'
23
42
with :
24
43
github_token : ${{ secrets.GITHUB_TOKEN }}
25
- publish_dir : ./cookbook/book
44
+ publish_dir : ./site/public
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ rust-bitcoin.org
You can’t perform that action at this time.
0 commit comments