ADS release v2.10.0 (#542) #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish Docs" | |
# To run this workflow manually from the Actions tab | |
on: | |
# Auto-trigger this workflow on tag creation | |
push: | |
tags: | |
- 'v*.*.*' | |
env: | |
RTDS_ADS_PROJECT: https://readthedocs.org/api/v3/projects/accelerated-data-science | |
RTDS_ADS_TOKEN: ${{ secrets.RTDS_ADS_TOKEN }} | |
jobs: | |
build-n-publish: | |
name: Build and publish Docs 📖 to Readthedocs | |
runs-on: ubuntu-latest | |
steps: | |
- name: When tag 🏷️ pushed - Trigger Readthedocs build | |
if: github.event_name == 'push' && startsWith(github.ref_name, 'v') | |
run: | | |
# trigger build/publish of latest version | |
curl \ | |
-X POST \ | |
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/latest/builds/ | |
# add 15 minutes wait time for readthedocs see freshly created tag | |
sleep 15m | |
# trigger build/publish of v*.*.* version | |
curl \ | |
-X POST \ | |
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/${{ github.ref_name }}/builds/ |