@@ -6,6 +6,7 @@ permissions:
6
6
contents : write
7
7
packages : write
8
8
deployments : write
9
+ pages : write
9
10
jobs :
10
11
build :
11
12
strategy :
59
60
- name : Build
60
61
run : cmake --build build --config Release
61
62
62
- # Debugging step: Print out directory contents (after build)
63
63
- name : List output directory contents
64
64
run : |
65
65
if [ -d "out" ];then
70
70
71
71
- name : Prepare files for packaging
72
72
run : |
73
- # Create the directory structure for the package
74
73
mkdir -p package/Release/${{ matrix.platform }}/lib
75
74
76
- # Only copy binaries if the output directory exists
77
75
if [ -d "out" ]; then
78
76
cp -r out/* package/Release/${{ matrix.platform }}/lib/ || true
79
77
else
@@ -113,7 +111,6 @@ jobs:
113
111
114
112
- name : Create OS-specific packages
115
113
run : |
116
- # Group by OS platform
117
114
for os_platform in windows linux macos; do
118
115
mkdir -p "GekkoNet-${os_platform}"
119
116
mkdir -p "GekkoNet-${os_platform}/${os_platform}/include"
@@ -136,3 +133,41 @@ jobs:
136
133
draft : false
137
134
prerelease : false
138
135
files : GekkoNet-*-Release.tar.gz
136
+
137
+ generate_docs :
138
+ needs : create_release
139
+ runs-on : ubuntu-latest
140
+ if : ${{ success() }}
141
+ permissions :
142
+ contents : write
143
+ pages : write
144
+
145
+ steps :
146
+ - uses : actions/checkout@v4
147
+
148
+ - name : Install Doxygen
149
+ run : sudo apt-get update && sudo apt-get install -y doxygen graphviz
150
+
151
+ - name : Configure CMake for Documentation
152
+ run : |
153
+ cmake -B build \
154
+ -DBUILD_DOCS=ON \
155
+ -DCMAKE_BUILD_TYPE=Release \
156
+ GekkoLib
157
+
158
+ - name : Generate Documentation
159
+ run : cmake --build build --target docs
160
+
161
+ - name : Setup Pages
162
+ uses : actions/configure-pages@v4
163
+
164
+ - name : Upload Documentation
165
+ uses : actions/upload-pages-artifact@v3
166
+ with :
167
+ path : ' build/docs/html'
168
+
169
+ - name : Deploy to GitHub Pages
170
+ id : deployment
171
+ uses : actions/deploy-pages@v4
172
+ with :
173
+ token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments