Skip to content

Commit de2eebf

Browse files
authored
Merge pull request #21 from rust-lang/github-actions
Migrate CI to GitHub Actions
2 parents 6e6591f + 1d2aa19 commit de2eebf

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
name: build and test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install mdbook
16+
run: |
17+
tag=$(curl -LsSf https://api.github.com/repos/rust-lang/mdBook/releases/latest | jq -r '.tag_name')
18+
curl -LsSf https://github.com/rust-lang/mdBook/releases/download/$tag/mdbook-$tag-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
19+
echo $(pwd) >> $GITHUB_PATH
20+
- run: mdbook build && mdbook test
21+
- uses: rust-lang/simpleinfra/github-actions/static-websites@master
22+
with:
23+
deploy_dir: book
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'

.travis.yml

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

0 commit comments

Comments
 (0)