Test of Preview Build #2
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: Deploy pull request previews | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# One preview per pull request | |
concurrency: preview-${{ github.ref }} | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
pip install ".[doc]" | |
pip freeze | |
if: github.event.action != 'closed' | |
- name: Build Documentation | |
run: | | |
make clean html | |
if: github.event.action != 'closed' | |
- uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: . | |
preview-branch: main | |
umbrella-dir: pr-preview | |
action: auto |