@@ -132,6 +132,45 @@ jobs:
132132 name : chm_${{ runner.os }}_${{ env.PANDOC_VERSION }}${{ matrix.with-feature }}
133133 path : build/destdir/usr/local/share/ags-manual/*.chm
134134 if-no-files-found : error
135+
136+ - name : Clean up and switch to ags4 source
137+ run : >
138+ cd build && make maintainer-clean && cd .. &&
139+ rm -rf build &&
140+ git -C source config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" &&
141+ git -C source fetch --all &&
142+ git -C source checkout -f -b ags4 origin/ags4
143+ - name : bootstrap ()
144+ run : ./bootstrap
145+ - name : configure
146+ run : >
147+ mkdir build &&
148+ cd build &&
149+ ../configure --prefix=/usr/local ${{ matrix.with-feature }}
150+ - name : distcheck
151+ env :
152+ DISTCHECK_CONFIGURE_FLAGS : ${{ matrix.with-feature }}
153+ run : >
154+ cd build &&
155+ make -j $(($(getconf _NPROCESSORS_ONLN) - 1)) distcheck
156+ - name : stage installation
157+ run : >
158+ cd build &&
159+ make -j $(($(getconf _NPROCESSORS_ONLN) - 1)) DESTDIR=destdir install &&
160+ mv destdir/usr/local/share/ags-manual/ags-help.chm destdir/usr/local/share/ags-manual/ags4-help.chm
161+ - name : Upload website
162+ if : ${{ matrix.with-feature != null }}
163+ uses : actions/upload-artifact@v4
164+ with :
165+ name : ags4_website_${{ runner.os }}_${{ env.PANDOC_VERSION }}
166+ path : build/destdir/usr/local/share/ags-manual/website
167+ if-no-files-found : error
168+ - name : Upload CHM file
169+ uses : actions/upload-artifact@v4
170+ with :
171+ name : ags4_chm_${{ runner.os }}_${{ env.PANDOC_VERSION }}${{ matrix.with-feature }}
172+ path : build/destdir/usr/local/share/ags-manual/*.chm
173+ if-no-files-found : error
135174 check-and-release :
136175 runs-on : ubuntu-22.04
137176 needs : build
@@ -162,7 +201,7 @@ jobs:
162201 if : startsWith(github.ref, 'refs/tags/v')
163202 uses : ncipollo/release-action@v1
164203 with :
165- artifacts : artifacts/chm_Windows_${{ env.PANDOC_VERSION }}/ags-help.chm,artifacts/release_Linux_${{ env.PANDOC_VERSION }}/ags-manual-*.tar.gz
204+ artifacts : artifacts/chm_Windows_${{ env.PANDOC_VERSION }}/ags-help.chm,artifacts/ags4_chm_Windows_${{ env.PANDOC_VERSION }}/ags4-help.chm,artifacts/ release_Linux_${{ env.PANDOC_VERSION }}/ags-manual-*.tar.gz
166205 allowUpdates : true
167206 omitBodyDuringUpdate : true
168207 token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments