All checks were successful
Build TeX document / build-and-publish (push) Successful in 1m34s
74 lines
2.6 KiB
YAML
74 lines
2.6 KiB
YAML
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
|
|
env:
|
|
BIBER_VERSION: "2.17"
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
url="https://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/${BIBER_VERSION}/binaries/Linux/biber-linux_x86_64.tar.gz/download"
|
|
|
|
curl --fail --location "$url" --output biber.tar.gz
|
|
tar -xzf biber.tar.gz
|
|
|
|
install -m 0755 biber "$RUNNER_TEMP/biber"
|
|
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
|
|
|
|
"$RUNNER_TEMP/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-of-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
|