This repository was archived by the owner on Oct 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-79
lines changed Expand file tree Collapse file tree 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"
14name : github pages
25
36on :
47 push :
58 branches :
69 - master
10+ workflow_dispatch : null
711
812jobs :
913 deploy :
1014 runs-on : ubuntu-latest
1115 steps :
1216 - 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
1320
1421 - name : Setup mdBook
1522 uses : peaceiris/actions-mdbook@v1
1623 with :
1724 mdbook-version : ' latest'
1825
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
2038
2139 - name : Deploy
2240 uses : peaceiris/actions-gh-pages@v3
41+ if : github.ref == 'refs/heads/master'
2342 with :
2443 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