22 lines
510 B
YAML
22 lines
510 B
YAML
name: Read the Docs Deploy Trigger
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
trigger-rtd-webhook:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger Read the Docs webhook
|
|
env:
|
|
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
|
|
run: |
|
|
curl --fail --show-error --silent \
|
|
-X POST \
|
|
-d "branches=${{ github.ref_name }}" \
|
|
-d "token=${RTD_TOKEN}" \
|
|
"https://readthedocs.org/api/v2/webhook/sls-csaxs/270162/"
|