Skip to content

Commit ea849a8

Browse files
committed
Move to GitHub Actions
1 parent c14cd80 commit ea849a8

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

.github/workflows/rust.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
# Runs at 00:10 UTC every day.
10+
- cron: '10 0 * * *'
11+
12+
env:
13+
CARGO_TERM_COLOR: always
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
- name: Prepare pages
25+
run: ./prepare-pages.sh
26+
- name: Deploy GitHub Pages
27+
run: |
28+
git worktree add gh-pages gh-pages
29+
git config user.name "Deploy from CI"
30+
git config user.email ""
31+
cd gh-pages
32+
# Delete the ref to avoid keeping history.
33+
git update-ref -d refs/heads/gh-pages
34+
rm -rf *
35+
mv ../output/* .
36+
git add .
37+
git commit -m "Deploy $GITHUB_SHA to gh-pages"
38+
git push --force

.travis.yml

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

0 commit comments

Comments
 (0)