Replace providers #1
Workflow file for this run
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
| # .github/workflows/preview.yml | |
| name: Deploy PR previews | |
| concurrency: preview-${{ github.ref }} | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - closed | |
| jobs: | |
| deploy-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set base URL for preview if PR | |
| run: echo "DOCS_BASE_URL=https://${{ env.DOMAIN }}/${{ env.PR_PATH}}/" >> $GITHUB_ENV | |
| - name: Setup PDM | |
| uses: pdm-project/setup-pdm@v4 | |
| with: | |
| python-version: 3.12 | |
| cache: true | |
| - name: Install dependencies | |
| run: pdm install | |
| - name: Build docs | |
| run: pdm docs | |
| if: github.event.action != 'closed' | |
| - uses: rossjrw/pr-preview-action@v1 | |
| with: | |
| source-dir: . | |
| preview-branch: gh-pages | |
| umbrella-dir: pr-preview | |
| action: auto |