ncr-of-monomial-curves/.forgejo/workflows/build-document.yml
Markus Maximilian Rudolf Tripp ea50a0a7ad
Some checks failed
Build TeX document / build-and-publish (push) Failing after 43s
add tex pipeline
2026-09-24 16:24:32 +02:00

57 lines
2 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: Compile document
shell: bash
run: |
set -euo pipefail
mkdir -p dist/build dist/release
tectonic --keep-logs --outdir dist/build document.tex
cp dist/build/document.pdf dist/release/document.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