Skip to content

Commit e6e3185

Browse files
authored
Update main.yml
1 parent 637b12e commit e6e3185

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/main.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name: CI
2-
32
on:
43
push:
54
branches: [ main ]
65
pull_request:
76
branches: [ main ]
87

8+
permissions:
9+
contents: write
10+
911
jobs:
1012
build:
1113
name: Build, Test and Deploy
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4 # Update to v4
1517
- uses: actions-rs/toolchain@v1
1618
with:
1719
toolchain: stable
@@ -20,12 +22,8 @@ jobs:
2022
mkdir bin
2123
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
2224
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
2928
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

0 commit comments

Comments
 (0)