Skip to content

Commit cd710fd

Browse files
committed
update workflow
1 parent a0055c1 commit cd710fd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
docs:
2323
name: Deploy docs to GitHub Pages
2424
runs-on: ubuntu-latest
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
2528

2629
steps:
2730
- name: Checkout
@@ -40,18 +43,16 @@ jobs:
4043
- name: Install dependencies
4144
run: uv sync --group docs
4245

43-
- name: Configure Git
44-
run: |
45-
git config --global user.name "github-actions[bot]"
46-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46+
- name: Build documentation
47+
run: uv run mkdocs build
4748

48-
- name: Build and deploy documentation
49-
run: uv run mkdocs gh-deploy --force --clean
49+
- name: Setup Pages
50+
uses: actions/configure-pages@v4
5051

51-
- name: Upload Pages artifact
52+
- name: Upload to GitHub Pages
5253
uses: actions/upload-pages-artifact@v3
5354
with:
54-
path: site/
55+
path: ./site
5556

5657
- name: Deploy to GitHub Pages
5758
id: deployment

0 commit comments

Comments
 (0)