Repository navigation
docs: consolidate CHANGELOG into a single 0.1.0 section #19
This file contains hidden or 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: Trigger Read the Docs build | |
| # Build the docs on Read the Docs whenever main changes, instead of clicking | |
| # "Build version" by hand. Requires a repo secret READTHEDOCS_TOKEN (create one | |
| # at https://app.readthedocs.org/accounts/tokens/). If you instead connect the | |
| # repo via the Read the Docs GitHub App / incoming webhook, that handles this | |
| # natively and this workflow is unnecessary. | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| trigger: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger a build of the latest version | |
| env: | |
| RTD_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }} | |
| run: | | |
| if [ -z "$RTD_TOKEN" ]; then | |
| echo "READTHEDOCS_TOKEN secret not set — skipping." && exit 0 | |
| fi | |
| curl -fsSL -X POST \ | |
| -H "Authorization: Token ${RTD_TOKEN}" \ | |
| "https://app.readthedocs.org/api/v3/projects/moderndive/versions/latest/builds/" |