Skip to content

Commit d2d7ecf

Browse files
committed
Try artifact deploy
1 parent d4d8a99 commit d2d7ecf

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
needs: build
6060
name: Deploy docs
6161
runs-on: ubuntu-latest
62+
6263
steps:
6364
- name: Checkout repository
6465
uses: actions/[email protected]
@@ -100,5 +101,22 @@ jobs:
100101
run: pip install -r docs/requirements.txt
101102
- name: Generate images-by-category.md
102103
run: python scripts/generate-images-by-category.py
104+
- name: Build documentation
105+
run: mkdocs build
106+
- name: Upload static files as artifact
107+
uses: actions/[email protected]
108+
with:
109+
path: site/
110+
pages:
111+
permissions:
112+
pages: write
113+
id-token: write
114+
environment:
115+
name: github-pages
116+
url: ${{ steps.deployment.outputs.page_url }}
117+
runs-on: ubuntu-latest
118+
needs: deploy
119+
steps:
103120
- name: Deploy to GitHub Pages
104-
run: mkdocs gh-deploy --force
121+
id: deployment
122+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)