Skip to content

Commit 84023b0

Browse files
committed
Migrate the CI and deployment to GitHub Actions.
1 parent 484dc4d commit 84023b0

File tree

3 files changed

+46
-14
lines changed

3 files changed

+46
-14
lines changed

.github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 2.4.4
18+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19+
- name: Build
20+
run: bundle exec jekyll build

.github/workflows/deploy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Ruby
12+
uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.4.4
15+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
16+
- name: Build
17+
run: bundle exec jekyll build
18+
- name: Deploy
19+
uses: burnett01/[email protected]
20+
with:
21+
switches: -avz
22+
path: _site/
23+
remote_path: www/
24+
remote_host: ${{ secrets.DEPLOY_HOST }}
25+
remote_user: ${{ secrets.DEPLOY_USER }}
26+
remote_key: ${{ secrets.DEPLOY_KEY }}

.travis.yml

-14
This file was deleted.

0 commit comments

Comments
 (0)