forked from flintlib/flint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb41ab7
commit 2009679
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,6 +206,37 @@ jobs: | |
run: | | ||
gh release create $TAG_NAME $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA flint-${FLINT_VERSION}.{tar.gz,tar.xz,zip} | ||
- if: env.TAG_NAME != 'nightly' | ||
name: "Setup for PDF documentation" | ||
run: | | ||
sudo apt-get install -y python3-sphinx | ||
sphinx-build --version | ||
- if: env.TAG_NAME != 'nightly' | ||
name: "Build PDF documentation" | ||
uses: dante-ev/latex-action@latest | ||
with: | ||
root_file: | ||
compiler: | ||
args: | ||
entrypoint: doc/entrypoint.sh | ||
|
||
- if: env.TAG_NAME != 'nightly' | ||
name: "Setup SSH key" | ||
uses: shimataro/[email protected] | ||
with: | ||
key: ${{ secrets.SSH_KEY }} | ||
name: id_ed25519 | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
|
||
- if: env.TAG_NAME != 'nightly' | ||
name: "Upload to website" | ||
run: | | ||
# Push documentation and tarballs to server | ||
mv doc/build/latex/flint.pdf flint-${FLINT_VERSION}.pdf | ||
for ext in pdf tar.gz zip; do | ||
scp flint-${FLINT_VERSION}.$ext [email protected]:~/apps/flintlib_org/download/ | ||
# Rebuild the website | ||
ssh -t [email protected] 'cd ~/flintwebpage && python3 downloads.py ~/apps/flintlib_org && python3 build.py ~/apps/flintlib_org' | ||
# TODO: we could / should perhaps also test `make install` ? | ||
# TODO: also trigger a documentation build and upload the result? | ||
# TODO: if desired, we could e.g. also upload the archive to a server via scp |