-
-
Notifications
You must be signed in to change notification settings - Fork 39
42 lines (39 loc) · 1.03 KB
/
docs.yml
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
35
36
37
38
39
40
41
42
name: Docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
crystal-version: [1.0.0]
steps:
- uses: actions/checkout@v2
- uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal-version }}
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Crystal Dependencies
run: shards install --ignore-crystal-version
- name: Build Docs
run: mkdocs build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
keep_history: true
build_dir: site
committer_name: Chris Watson
committer_email: cawatson1993@gmail.com
commit_message: "Update docs"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}