2023-06-09 19:50:56 +00:00
|
|
|
name: Build and publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-09 19:52:09 +00:00
|
|
|
branches:
|
2023-06-09 19:50:56 +00:00
|
|
|
- master
|
|
|
|
|
2023-06-09 19:52:09 +00:00
|
|
|
jobs:
|
|
|
|
publishing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-06-11 16:54:04 +00:00
|
|
|
|
2023-06-09 19:52:09 +00:00
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2023-06-13 16:22:27 +00:00
|
|
|
python-version: '3.8'
|
2023-06-11 16:54:04 +00:00
|
|
|
|
2023-06-13 16:41:56 +00:00
|
|
|
- name: Setup Poetry
|
2023-06-11 16:54:04 +00:00
|
|
|
uses: abatilo/actions-poetry@v2
|
2023-06-13 16:29:30 +00:00
|
|
|
with:
|
|
|
|
poetry-version: '1.5.1'
|
2023-06-11 16:54:04 +00:00
|
|
|
|
2023-06-13 16:36:23 +00:00
|
|
|
- name: Install Poetry dependencies
|
2023-06-13 16:41:56 +00:00
|
|
|
run: poetry install --no-root
|
2023-06-13 16:36:23 +00:00
|
|
|
|
2023-06-09 19:52:09 +00:00
|
|
|
- name: Build
|
2023-06-11 16:54:04 +00:00
|
|
|
run: poetry run mkdocs build
|
|
|
|
|
2023-06-09 19:52:09 +00:00
|
|
|
- name: Publish
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./site
|
2023-06-11 16:54:04 +00:00
|
|
|
publish_branch: site
|