Skip to content

Commit c78231f

Browse files
classabbyampDuncaen
authored andcommitted
.github/workflows: add doxygen deployment to github pages
1 parent 48c3a82 commit c78231f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/doxygen.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Doxygen
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: ${{ github.workflow }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
container: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64
21+
steps:
22+
- name: Prepare container
23+
run: |
24+
xbps-install -Syu || xbps-install -yu xbps
25+
xbps-install -Sy bash git gcc make pkg-config zlib-devel openssl-devel libarchive-devel doxygen graphviz
26+
- uses: classabbyamp/treeless-checkout-action@v1
27+
- name: Build
28+
run: |
29+
./configure --enable-api-docs
30+
make -j -C include && make -j -C doc
31+
rm -rf ./api/html/Nodes.xml Info.plist Makefile Tokens.xml
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v1
34+
with:
35+
path: ./api/html
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
needs: build
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)