-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 849 Bytes
/
build.yml
File metadata and controls
34 lines (31 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: oprypin/install-crystal@v1
with:
crystal: 1.0.0
- name: Install Ruby Deps
run: bundle install
- name: Install Redpen
run: |
cd /tmp
curl -LO https://github.com/redpen-cc/redpen/releases/download/redpen-1.10.4/redpen-1.10.4.tar.gz
tar xvf redpen-1.10.4.tar.gz
echo /tmp/redpen-distribution-1.10.4/bin >> $GITHUB_PATH
- name: Build
run: bundle exec rake -j
- name: Lint
run: bundle exec rake lint
- name: Test
run: bundle exec rake test
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/