MetinSa is deploying the documentation to gh-pages. #38
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: mkdocs-deploy | |
run-name: ${{ github.actor }} is deploying the documentation to gh-pages. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install and configure Poetry | |
uses: snok/[email protected] | |
with: | |
version: 1.2.2 | |
virtualenvs-in-project: true | |
- name: Install dependencies | |
run: poetry install | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
- name: Deploy docs to gh-pages | |
run: | | |
source $VENV | |
mkdocs gh-deploy --force --clean --verbose |