Skip to content

Commit

Permalink
update doc pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Nov 20, 2024
1 parent 85d1623 commit 3e5ba55
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/publish_doc_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ on:
push:
branches:
- master
- badges
paths:
- 'doc/**'
- 'sparc/**'
- '.coverage'
pull_request:
branches:
- master
- badges
paths:
- 'doc/**'
- 'sparc/**'
- '.coverage'

workflow_dispatch:

Expand All @@ -24,7 +29,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Checkout the latest .coverage file from badges branch
uses: actions/checkout@v4
with:
sparse-checkout: |
.coverage
sparse-checkout-cone-mode: false
ref: badges
path: coverage
- name: List current files
run: |
ls -al .
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.11"
Expand All @@ -35,9 +51,9 @@ jobs:
- name: Install doc-build dependencies
run: |
pip install -e ".[doc]"
- name: Build sphix doc
run: |
# sphinx-build doc doc/_build
cd doc
make clean && make html
- name: Deploy to github pages
Expand Down

0 comments on commit 3e5ba55

Please sign in to comment.