Skip to content

Commit 0ceef88

Browse files
update ci
1 parent ce0edb1 commit 0ceef88

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
name: Deploy mdBook to GitHub Pages
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: ["main"]
76

87
jobs:
9-
build:
8+
deploy:
109
runs-on: ubuntu-latest
11-
1210
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v2
15-
16-
- name: Install mdBook
17-
run: cargo install mdbook
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup mdBook
14+
run: |
15+
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar xz
16+
sudo mv mdbook /usr/local/bin/
1817
19-
- name: Build the book
18+
- name: Build
2019
run: mdbook build
2120

22-
- name: Deploy to GitHub Pages
21+
- name: Deploy
2322
uses: peaceiris/actions-gh-pages@v3
2423
with:
2524
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_branch: gh-pages
2725
publish_dir: ./book

0 commit comments

Comments
 (0)