@@ -172,21 +172,28 @@ jobs:
172172 run : |
173173 (echo "SUBJECT=\"FLINT nightly release\"";
174174 echo "PRERELEASE=\"--prerelease --draft\"") >> $GITHUB_ENV
175- gh release delete nightly --yes || true
176- git push origin :nightly || true
175+ # gh release delete nightly --yes || true
176+ # git push origin :nightly || true
177177
178178
179179 - if : env.TAG_NAME != 'nightly'
180180 run : |
181181 (echo "SUBJECT=\"FLINT v${FLINT_VERSION}\"";
182182 echo "PRERELEASE=") >> $GITHUB_ENV
183- gh release delete stable --yes || true
184- git push origin :stable || true
183+ # gh release delete stable --yes || true
184+ # git push origin :stable || true
185185
186186 - name : Generate release message
187187 run : |
188188 # Print tag message
189+ mkdir tmp
190+ cd tmp
191+ git clone --bare --filter=blob:none --depth=1 --branch v${FLINT_VERSION} https://github.com/flintlib/flint.git
192+ mv flint.git .git
189193 git for-each-ref refs/tags/v${FLINT_VERSION} --format='%(contents)' > $RUNNER_TEMP/notes.md
194+ cd ..
195+ rm -rf tmp/
196+
190197 # Generate checksums
191198 printf '## SHA256 Checksums\n```\n' >> $RUNNER_TEMP/notes.md
192199 for ext in tar.gz tar.xz zip; do
@@ -214,7 +221,8 @@ jobs:
214221 run : |
215222 sudo apt-get install -y python3-sphinx texlive-full
216223 sphinx-build --version
217- cd doc/
224+ tar -xf flint-${FLINT_VERSION}.tar.gz
225+ cd flint-${FLINT_VERSION}/doc/
218226 make latexpdf SPHINXOPTS="-W -j auto"
219227
220228 - if : env.TAG_NAME != 'nightly'
@@ -229,10 +237,12 @@ jobs:
229237 name : " Upload to website"
230238 run : |
231239 # Push documentation and tarballs to server
232- mv doc/build/latex/flint.pdf flint-${FLINT_VERSION}.pdf
240+ mv flint-${FLINT_VERSION}/ doc/build/latex/flint.pdf flint-${FLINT_VERSION}.pdf
233241 for ext in pdf tar.gz zip; do
234242 scp flint-${FLINT_VERSION}.$ext [email protected] :~/apps/flintlib_org/download/ 243+ done
244+
235245 # Rebuild the website and append version-date tuple to HISTORY
236- ssh -t [email protected] 'cd ~/flintwebpage && date +'"'"'%Y-%m-%d'"'"' >> HISTORY && python3 downloads.py ~/apps/flintlib_org && python3 build.py ~/apps/flintlib_org' 246+ ssh -t [email protected] 'cd ~/flintwebpage && date +'"'"'%Y-%m-%d'"'"' >> HISTORY && export LANG=en_US.UTF-8 && python3 downloads.py ~/apps/flintlib_org && python3 build.py ~/apps/flintlib_org' 237247
238248# TODO: we could / should perhaps also test `make install` ?
0 commit comments