Merge pull request #151 from PanDAWMS/next #51
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: build-docs-workflow | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-docs: | |
name: "Build Sphinx docs" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7'] | |
steps: | |
- name: Checkout Pilot 3 repo | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Pip install | |
run: pip install sphinx | |
- name: Check sphinx version | |
run: python -c "import sphinx;print(sphinx.__version__)" | |
- name: Trigger panda-docs webhook | |
env: | |
READDOCS_TOKEN: ${{ secrets.READDOCS_TOKEN }} | |
READDOCS_HOOK: ${{ secrets.READDOCS_HOOK }} | |
run: curl -X POST -d "token=$READDOCS_TOKEN" $READDOCS_HOOK |