Skip to content

Commit 96436e6

Browse files
ci: rewrite pages deploy action
1 parent 86e5596 commit 96436e6

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy Docs
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
inputs:
7+
deploy:
8+
type: boolean
9+
required: true
10+
default: false
11+
description: 'Deploy manual build'
12+
13+
jobs:
14+
build-docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v5
19+
20+
- name: Build Doxygen
21+
run: doxygen
22+
23+
- name: Upload Docs
24+
id: deployment
25+
uses: actions/upload-pages-artifact@v4
26+
with:
27+
path: docs/
28+
29+
deploy-docs:
30+
needs: build-docs
31+
if: inputs.deploy
32+
permissions:
33+
pages: write
34+
id-token: write
35+
environment:
36+
name: github-pages
37+
url: ${{steps.deployment.outputs.page_url}}
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)