Skip to content

Commit 31137b3

Browse files
committed
Switch from travis to github actions.
1 parent 81219ac commit 31137b3

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install mdbook
13+
run: |
14+
mkdir mdbook
15+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.8/mdbook-v0.4.8-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
16+
echo `pwd`/mdbook >> $GITHUB_PATH
17+
- name: Generate Book
18+
run: |
19+
./generate-book.sh
20+
- name: Deploy GitHub Pages
21+
uses: rust-lang/simpleinfra/github-actions/static-websites@master
22+
with:
23+
deploy_dir: book
24+
github_token: "${{ secrets.github_token }}"

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)