Skip to content

Commit 627fbaf

Browse files
committed
Try artifact deploy
1 parent d4d8a99 commit 627fbaf

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ jobs:
5959
needs: build
6060
name: Deploy docs
6161
runs-on: ubuntu-latest
62+
63+
permissions:
64+
pages: write
65+
id-token: write
66+
6267
steps:
6368
- name: Checkout repository
6469
uses: actions/[email protected]
@@ -100,5 +105,19 @@ jobs:
100105
run: pip install -r docs/requirements.txt
101106
- name: Generate images-by-category.md
102107
run: python scripts/generate-images-by-category.py
108+
- name: Build documentation
109+
run: mkdocs build
110+
- name: Upload static files as artifact
111+
uses: actions/[email protected]
112+
with:
113+
path: site/
114+
pages:
115+
environment:
116+
name: github-pages
117+
url: ${{ steps.deployment.outputs.page_url }}
118+
runs-on: ubuntu-latest
119+
needs: deploy
120+
steps:
103121
- name: Deploy to GitHub Pages
104-
run: mkdocs gh-deploy --force
122+
id: deployment
123+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)