diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..0263445 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,20 @@ +name: mkdocs-deploy + +on: + push: + branches: + - main # Triggers deployment on push to the main branch + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.9 + - run: pip install '.[docs]' + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml deleted file mode 100644 index c46ff23..0000000 --- a/.github/workflows/mkdocs-deploy.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deploy MkDocs Site - -on: - push: - branches: - - main # Triggers deployment on push to the main branch - -permissions: - contents: write - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: mkdocs.yml - REQUIREMENTS: requirements_docs.txt