diff --git a/.github/workflows/doc_deploy.yml b/.github/workflows/doc_deploy.yml new file mode 100644 index 0000000..9fb0b02 --- /dev/null +++ b/.github/workflows/doc_deploy.yml @@ -0,0 +1,28 @@ +# Deploy documentation when new release created + +name: Deploy docs + +on: + release: + types: + - published + + +jobs: + build: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Checkout main + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Python 3.12 + uses: actions/setup-python@v2 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install .[docs] + - name: Deploy docs + run: mkdocs gh-deploy --force