Skip to content

Fold phase-3 postprocess into the sweep via gmat-sweep's hook (#63) #105

Fold phase-3 postprocess into the sweep via gmat-sweep's hook (#63)

Fold phase-3 postprocess into the sweep via gmat-sweep's hook (#63) #105

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
# contents: write lets showyourwork-action force-push the built PDF and
# arxiv tarball to the auto-managed `<branch>-pdf` branch on each push to
# `main`. Provides a stable URL to the latest manuscript without exposing
# write to anything other than the official action.
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build the manuscript
# @v1 is stale (April 2022); main has the modern Python-3.11+ codepath.
uses: showyourwork/showyourwork-action@main
with:
conda-cache-number: 0
# Match environment.yml: pull showyourwork from git@main, not PyPI
# (PyPI v0.4.3 is incompatible with Python 3.11+).
showyourwork-spec: "git+https://github.com/showyourwork/showyourwork@main"
# The latexdiff PR-diff PDF feature `apt-get install`s texlive-base,
# which drags in ~4–5 min of texlive-binaries / dvisvgm / ghostscript
# / fonts on every PR build. The main compile already uses tectonic
# via showyourwork's bundled conda env, so this is the only apt cost
# in CI. We don't use the diff.pdf artifact; skip it.
build-diff-on-pull-request: "false"
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: manuscript
path: ms.pdf