Skip to content

Commit

Permalink
fix(ci): add missing ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 24, 2023
1 parent 80e241a commit 5dcc1f9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,43 @@ jobs:

- name: Execute Pre-Commit
run: pre-commit run --show-diff-on-failure --color=always --all-files

build-docs:
needs:
- validate
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- uses: pdm-project/setup-pdm@v3
name: Set up PDM
with:
python-version: "3.11"
allow-python-prereleases: true
cache: true

- name: Install dependencies
run: pdm install -G:docs

- name: Build docs
run: pdm run make docs

- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: echo $PR_NUMBER > .pr_number

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: docs-preview
path: |
docs/_build/html
.pr_number

0 comments on commit 5dcc1f9

Please sign in to comment.