Skip to content

Commit 22d8e2d

Browse files
committed
gh actions: add doxygen / gh pages build
1 parent e185941 commit 22d8e2d

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,41 @@ jobs:
4545
uses: actions/upload-artifact@v4
4646
with:
4747
name: chestotesto.rpx
48-
path: /__w/chesto/chesto/chestotesto.rpx
48+
path: /__w/chesto/chesto/chestotesto.rpx
49+
50+
docs:
51+
runs-on: ubuntu-latest
52+
container:
53+
image: ubuntu:latest
54+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
55+
permissions:
56+
contents: read
57+
pages: write
58+
id-token: write
59+
environment:
60+
name: github-pages
61+
url: ${{ steps.deployment.outputs.page_url }}
62+
steps:
63+
- uses: actions/checkout@main
64+
with:
65+
submodules: recursive
66+
- name: Install Doxygen
67+
run: |
68+
apt-get update
69+
apt-get -y install doxygen
70+
- name: Generate documentation
71+
run: |
72+
doxygen
73+
- name: Copy over pages files
74+
run: |
75+
mkdir -p public
76+
cp -r docs/html/* public
77+
- name: Setup Pages
78+
uses: actions/configure-pages@v4
79+
- name: Upload artifact
80+
uses: actions/upload-pages-artifact@v3
81+
with:
82+
path: ./public
83+
- name: Deploy to GitHub Pages
84+
id: deployment
85+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)