diff --git a/.github/workflows/mkdocs_publish.yml b/.github/workflows/mkdocs_publish.yml new file mode 100644 index 0000000..74ab1af --- /dev/null +++ b/.github/workflows/mkdocs_publish.yml @@ -0,0 +1,36 @@ +name: MkDocs Publish + +on: + workflow_dispatch: + push: + branches: + - main # Change this to your main branch name + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - name: Install dependencies + run: | + poetry install --no-root + + - name: Build and deploy + run: | + poetry run mkdocs build --verbose + poetry run mkdocs gh-deploy --verbose --force + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}