name: Build TeX document on: push: branches: - main workflow_dispatch: jobs: build-and-publish: runs-on: ubuntu-latest steps: - name: Checkout repository uses: https://github.com/ischanx/checkout@06c611454073903c9d44641d7e085b21115d3dcf - name: Install Tectonic shell: bash env: TECTONIC_VERSION: 0.15.0 TECTONIC_SHA256: dfb82876f2986862996e564fa507a9e576e0c1e3bee63c2c1bd677c2543e6407 run: | set -euo pipefail archive="tectonic-${TECTONIC_VERSION}-x86_64-unknown-linux-musl.tar.gz" url="https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%40${TECTONIC_VERSION}/${archive}" curl --fail --location --silent --show-error "$url" --output "$archive" echo "${TECTONIC_SHA256} ${archive}" | sha256sum --check --strict tar -xzf "$archive" install -m 0755 tectonic "$RUNNER_TEMP/tectonic" echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Install Biber shell: bash run: | sudo apt-get update sudo apt-get install -y biber biber --version - name: Compile document shell: bash run: | set -euo pipefail mkdir -p dist/build dist/release tectonic --keep-logs --outdir dist/build ncr-of-monomial-curves.tex cp dist/build/ncr-monomial-curves.pdf dist/release/ncr-of-monomial-curves.pdf - name: Retain workflow artifact uses: https://code.forgejo.org/actions/upload-artifact@c6a3b2bd78b3985e4b2f15397fec357f0fd808de with: name: ncr-of-monomial-curves path: dist/release/ncr-of-monomial-curves.pdf if-no-files-found: error - name: Update stable release uses: https://code.forgejo.org/actions/forgejo-release@98265452477dafb3f0f27ba9c462c90b18cb44fd with: direction: upload url: https://imsc.uni-graz.at/git/ token: ${{ forge.token }} tag: latest title: Latest compiled document release-dir: dist/release release-notes: Automatically built from the latest commit on the main branch. override: true