Skip to content

Commit a4b2516

Browse files
authored
Merge pull request #1330 from second-state/github-actions
Support GitHub Actions
2 parents 028f93a + 283c6f2 commit a4b2516

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/rbe.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Install mdbook
18+
run: cargo install mdbook
19+
20+
- name: Build
21+
run: mdbook build
22+
23+
- name: Publish
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./book
28+
29+
- name: Upload Artifact
30+
uses: actions/upload-artifact@v1
31+
with:
32+
name: rust-by-example
33+
path: book

0 commit comments

Comments
 (0)