Bump the workflows group across 1 directory with 10 updates (#5915) #714
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: CI docs | |
| on: | |
| # NOTE: github.event context is push payload: | |
| # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/docs.yml | |
| - docs/** | |
| # NOTE: github.event context is pull_request payload: | |
| # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request | |
| pull_request: | |
| paths: | |
| - .github/workflows/docs.yml | |
| - docs/** | |
| jobs: | |
| docs: | |
| if: '!github.event.repository.fork' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| run: | | |
| make env-docs | |
| - name: Build the docs | |
| run: | | |
| cd docs | |
| conda run --name conda-build-docs make html |