fix: build #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy docs | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install -r requirements.txt | |
- name: Install Crystal libs | |
run: shards install | |
- name: Build site | |
run: mkdocs build --strict | |
- name: Deploy to gh-pages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: mkdocs gh-deploy --force |