File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
2
on :
4
3
push :
5
4
branches : [ main ]
6
5
pull_request :
7
6
branches : [ main ]
8
7
8
+ permissions :
9
+ contents : write
10
+
9
11
jobs :
10
12
build :
11
13
name : Build, Test and Deploy
12
14
runs-on : ubuntu-latest
13
15
steps :
14
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v4 # Update to v4
15
17
- uses : actions-rs/toolchain@v1
16
18
with :
17
19
toolchain : stable
20
22
mkdir bin
21
23
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
22
24
echo "$(pwd)/bin" >> $GITHUB_PATH
23
- # - name: Install mdbook-toc
24
- # run: cargo install mdbook-toc
25
- # - name: Install mdbook-mermaid
26
- # run: cargo install mdbook-mermaid
27
- - run : mdbook build # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
28
- - uses : JamesIves/github-pages-deploy-action@4.1.7
25
+ - run : mdbook build
26
+ - name : Deploy 🚀
27
+ uses : JamesIves/github-pages-deploy-action@v4 # Update to v4
29
28
with :
30
- branch : main # The branch the action should deploy to.
31
- folder : book # The folder the action should deploy.
29
+ folder : book # The folder the action should deploy
You can’t perform that action at this time.
0 commit comments