bot api update (#69) #244
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: 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 }} |