Skip to content

Commit 0676190

Browse files
committed
Migrate CI to Github actions
Easier to manage github tokens this way
1 parent 9987b61 commit 0676190

File tree

3 files changed

+32
-50
lines changed

3 files changed

+32
-50
lines changed

Diff for: .github/workflows/main.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- src
7+
schedule:
8+
# Once a day at 9am run the build
9+
- cron: '0 9 * * *'
10+
11+
jobs:
12+
publish:
13+
name: Publish
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@master
17+
- uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: '2.x'
20+
- name: Install Rust
21+
run: rustup update stable && rustup default stable
22+
- run: gem install bundler -v 1.16.5 && bundle install --retry=3 --jobs=4
23+
- run: cargo install mdbook --version 0.2.3
24+
- run: ./ci/build.sh
25+
26+
- name: Push to gh-pages
27+
run: |
28+
cd _site
29+
git init
30+
git add .
31+
git -c user.name='ci' -c user.email='ci' commit -m init
32+
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:master

Diff for: azure-pipelines.yml

-40
This file was deleted.

Diff for: ci/setup-git.sh

-10
This file was deleted.

0 commit comments

Comments
 (0)