Skip to content

Commit b0a23fb

Browse files
committed
Switch to GitHub Actions from Travis CI
1 parent 769d0ad commit b0a23fb

File tree

3 files changed

+25
-36
lines changed

3 files changed

+25
-36
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
name: CI
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
with:
15+
fetch-depth: 50
16+
- name: Build Blog
17+
run: cargo run
18+
- name: Deploy to GitHub Pages
19+
run: |
20+
cp CNAME ./site/
21+
curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
22+
(cd site/ && /tmp/deploy)
23+
env:
24+
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
25+
if: github.ref == 'refs/heads/master'

.travis.yml

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

deploy.sh

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

0 commit comments

Comments
 (0)