Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish docs to readthedocs on commits #47

Merged
merged 25 commits into from
Oct 1, 2024
Merged
24 changes: 24 additions & 0 deletions .github/workflows/publish-to-readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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