diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml new file mode 100644 index 00000000..cbb9121b --- /dev/null +++ b/.github/workflows/mkdocs.yml @@ -0,0 +1,26 @@ +name: publish-docs +on: + push: + branches: + - main + paths: + - 'mkdocs.yml' + - 'docs/**' + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - uses: actions/cache@v4 + with: + key: ${{ github.ref }} + path: .cache + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force