From 535b3b69dc48278f6cf3730bfab905415259851a Mon Sep 17 00:00:00 2001 From: George Feinberg Date: Tue, 1 Oct 2024 16:47:26 -0400 Subject: [PATCH] Publish docs to readthedocs on commits --- .github/workflows/publish-to-readthedocs.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish-to-readthedocs.yml diff --git a/.github/workflows/publish-to-readthedocs.yml b/.github/workflows/publish-to-readthedocs.yml new file mode 100644 index 0000000..d9491d6 --- /dev/null +++ b/.github/workflows/publish-to-readthedocs.yml @@ -0,0 +1,24 @@ +name: "Publish Docs" + +# To run this workflow manually from the Actions tab +on: push + +#on: + # Auto-trigger this workflow on tag creation +# push: +# tags: +# - 'v*.*.*' + +env: + RTDS_PROJECT: https://readthedocs.org/api/v2/webhook/nosql-python-sdk/279394/ + RTDS_TOKEN: ${{ secrets.RTD_API }} + +jobs: + build-n-publish: + name: Build and publish Docs 📖 to Readthedocs + runs-on: ubuntu-latest + + steps: + - name: Trigger readthedocs build + run: | + curl -X POST -d "token=$RTDS_TOKEN" $RTDS_PROJECT