diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index d60cffad..7ef144e3 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -44,12 +44,12 @@ jobs: . - name: Publish distribution 📦 to Test PyPI #if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI #if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/rebuild_docs.yml b/.github/workflows/rebuild_docs.yml new file mode 100644 index 00000000..4d18cad5 --- /dev/null +++ b/.github/workflows/rebuild_docs.yml @@ -0,0 +1,27 @@ +name: Rebuild Docs on ReadTheDocs + +on: + # Trigger the workflow on push to the dev branch + push: + branches: + - dev + # Optionally trigger on pull request merges + pull_request: + branches: + - master + +jobs: + trigger-docs-build: + runs-on: ubuntu-latest + + steps: + - name: Trigger documentation rebuild on Read the Docs + env: + # Set your environment variables for the request + READTHEDOCS_API_TOKEN: ${{ secrets.READTHEDOCS_API_TOKEN }} + READTHEDOCS_PROJECT_SLUG: bexhoma + run: | + # Use curl to trigger the RTD build + curl -X POST \ + -H "Authorization: Token ${READTHEDOCS_API_TOKEN}" \ + https://readthedocs.org/api/v3/projects/${READTHEDOCS_PROJECT_SLUG}/versions/latest/builds/