Skip to content

Commit 4090b76

Browse files
committed
feat: semantic release and mkdocs build
1 parent 198dc53 commit 4090b76

2 files changed

Lines changed: 34 additions & 44 deletions

File tree

.github/workflows/docs.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Semantic Release
1+
name: Release
22

33
on:
44
push:
@@ -8,6 +8,12 @@ permissions:
88
contents: write
99
issues: write
1010
pull-requests: write
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
1117

1218
jobs:
1319
release:
@@ -29,3 +35,30 @@ jobs:
2935
semantic-release
3036
env:
3137
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
docs-build:
40+
runs-on: ubuntu-latest
41+
needs: release
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.x"
48+
49+
- run: pip install mkdocs-material
50+
51+
- run: mkdocs build
52+
53+
- uses: actions/configure-pages@v5
54+
55+
- uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: site/
58+
59+
docs-deploy:
60+
runs-on: ubuntu-latest
61+
needs: docs-build
62+
steps:
63+
- id: deployment
64+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)