Skip to content

Commit c65e360

Browse files
authored
Change CI trigger to PR (forks), add guide.yml (#22)
1 parent fff6ec7 commit c65e360

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: ci-push
1+
name: ci-pr
22
on:
3-
push:
3+
pull_request:
44
branches-ignore:
55
- staging
66
- production

.github/workflows/guide.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci-guide
2+
on:
3+
pull_request:
4+
branches-ignore:
5+
- staging
6+
jobs:
7+
build-book:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- name: init
14+
run: |
15+
url="https://github.com/rust-lang/mdBook/releases/download/v0.4.47/mdbook-v0.4.47-x86_64-unknown-linux-gnu.tar.gz"
16+
mkdir mdbook
17+
curl -sSL $url | tar -xz --directory=./mdbook
18+
echo `pwd`/mdbook >> $GITHUB_PATH
19+
- name: build
20+
run: |
21+
cd guide
22+
mdbook build || exit 1
23+
ls book

0 commit comments

Comments
 (0)