Skip to content

Commit

Permalink
Push releases to website
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Jan 13, 2025
1 parent eb41ab7 commit 2009679
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2009679

Please sign in to comment.