Skip to content

Commit

Permalink
Migrate the CI and deployment to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd committed Mar 3, 2021
1 parent 484dc4d commit 84023b0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 14 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.4
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build
run: bundle exec jekyll build
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.4
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build
run: bundle exec jekyll build
- name: Deploy
uses: burnett01/[email protected]
with:
switches: -avz
path: _site/
remote_path: www/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 84023b0

Please sign in to comment.