Skip to content

Commit 07c9504

Browse files
committed
chore(ci): publish docs and coverage
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
1 parent b93df60 commit 07c9504

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Coverage
1+
name: Publish Project Coverage to Codecov
22

33
on:
44
push:
@@ -31,4 +31,7 @@ jobs:
3131
uses: codecov/codecov-action@v4
3232
with:
3333
files: coverage/lcov.info
34+
flags: rust
35+
name: rust-coverage
36+
fail_ci_if_error: true
3437
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docs-pages.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.12"
28+
- name: Install docs dependencies
29+
run: |
30+
curl -LsSf https://astral.sh/uv/install.sh | sh
31+
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
32+
uv pip install --system mkdocs mkdocs-material pymdown-extensions
33+
- name: Build docs
34+
run: mkdocs build --strict
35+
- name: Configure Pages
36+
uses: actions/configure-pages@v5
37+
- name: Upload Pages artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: site
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)