Skip to content

Release v2.11.13 (#884) #50

Release v2.11.13 (#884)

Release v2.11.13 (#884) #50

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/