Skip to content

Commit 3ce9747

Browse files
committed
Update docs.yml
1 parent b36f08a commit 3ce9747

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
contents: write
1616

1717
jobs:
18-
deploy:
18+
build:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
@@ -29,5 +29,30 @@ jobs:
2929
- name: Install mkdocs
3030
run: pip install mkdocs-material
3131

32-
- name: Build
33-
run: mkdocs gh-deploy --force
32+
- name: Build Documentation
33+
run: mkdocs build
34+
35+
- name: Upload Documentation
36+
if: success()
37+
uses: actions/upload-pages-artifact@v2
38+
with:
39+
name: github-pages
40+
path: '/docs/site'
41+
42+
pages:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
if: success()
46+
47+
permissions:
48+
pages: write
49+
id-token: write
50+
51+
steps:
52+
- name: Deploy Documentation
53+
id: deployment
54+
uses: actions/deploy-pages@v2
55+
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)