Sync RTD redirects #165
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: Sync RTD redirects | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- redirects.yml | |
- .github/workflows/sync-redirects.yaml | |
pull_request: | |
# Manually triggered using GitHub's UI | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
# - uses: nextstrain/.github/actions/setup-debugger@master | |
# with: | |
# tailscale-auth-key: ${{ secrets.TAILSCALE_AUTH_KEY }} | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Upgrade Python toolchain | |
run: python3 -m pip install --upgrade pip setuptools wheel | |
- name: Install readthedocs-cli | |
run: python3 -m pip install git+https://github.com/nextstrain/readthedocs-cli.git@add-user-agent | |
- name: Sync redirects (DRY RUN) | |
run: rtd projects nextstrain redirects sync -f "redirects.yml" --dry-run | |
env: | |
RTD_TOKEN: ${{ secrets.RTD_TOKEN }} | |
# jobs: | |
# sync: | |
# name: rtd redirects | |
# uses: nextstrain/.github/.github/workflows/sync-rtd-redirects.yaml@master | |
# with: | |
# project: nextstrain | |
# file: redirects.yml | |
# secrets: | |
# RTD_TOKEN: ${{ secrets.RTD_TOKEN }} |