Skip to content

Commit 1272fe4

Browse files
authored
Merge pull request #4 from BattModels/docs
deploy docs
2 parents 87fa51e + 7220ee1 commit 1272fe4

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ jobs:
1414
cache-dependency-glob: pyproject.toml
1515
- run: uv sync --group docs
1616
- run: uv run --group docs --with pip sphinx-build docs build/html
17-
- uses: actions/upload-artifact@v4
17+
- uses: actions/upload-pages-artifact@v4
1818
with:
1919
name: smirk-docs
20-
path: build/html
20+
path: build/html/
21+
deploy:
22+
if: ${{ github.ref == 'refs/heads/main' }}
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
runs-on: ubuntu-latest
27+
needs: build
28+
permissions:
29+
pages: write
30+
id-token: write
31+
steps:
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)