Update the repo to use Poetry build process

This commit is contained in:
madhead
2023-06-11 18:54:04 +02:00
parent 920574f8d8
commit 5ef3ce715a
2 changed files with 20 additions and 23 deletions

View File

@@ -10,19 +10,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material pymdown-extensions
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Build
run: mkdocs build
run: poetry run mkdocs build
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: site
publish_branch: site