Skip to content

Merge pull request #388 from koxudaxi/pre-commit-ci-update-config #178

Merge pull request #388 from koxudaxi/pre-commit-ci-update-config

Merge pull request #388 from koxudaxi/pre-commit-ci-update-config #178

Workflow file for this run

name: Docs
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- uses: actions/cache@v1
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install mkdocs mkdocs-material
- name: build site
run: ./scripts/build_site.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./site