Skip to content

Commit

Permalink
ci: Move the remaining CI tasks (updating the book) to GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Dec 26, 2020
1 parent fde75f6 commit faf8b3e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 58 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,22 @@ jobs:
BINDGEN_FEATURE_TESTING_ONLY_DOCS: ${{matrix.feature_testing_only_docs}}
BINDGEN_NO_DEFAULT_FEATURES: ${{matrix.no_default_features}}
run: ./ci/test.sh

test-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

# NOTE(emilio): Change deploy-book as well if you change this.
- name: Test book
run: |
cargo install mdbook --root mdbook-install --vers "^0.2.1" --force
./mdbook-install/bin/mdbook build book
./mdbook-install/bin/mdbook test book
34 changes: 34 additions & 0 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy book

on:
push:
branches:
- master

jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Test book
run: |
cargo install mdbook --root mdbook-install --vers "^0.2.1" --force
./mdbook-install/bin/mdbook build book
./mdbook-install/bin/mdbook test book
- name: Deploy book
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: book/book
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

33 changes: 0 additions & 33 deletions ci/deploy-book.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ci/test-book.sh

This file was deleted.

0 comments on commit faf8b3e

Please sign in to comment.