Skip to content

test(ci): move compute diff to top of render job #32

test(ci): move compute diff to top of render job

test(ci): move compute diff to top of render job #32

Workflow file for this run

name: Manuscript
on:
workflow_dispatch:
inputs:
debug_enabled:
description: "Run with tmate.io debugging enabled"
required: true
type: boolean
default: false
diff_enabled:
description: "Compute document changes with latexdiff"
required: true
type: boolean
default: true
push:
paths:
- ".github/workflows/manuscript.yaml"
- "reproducibility/manuscript/**"
defaults:
run:
shell: bash
jobs:
render:
runs-on: ubuntu-latest
concurrency:
group: render-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
steps:
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup dvc
uses: iterative/setup-dvc@68c55926a8ce27c2d4fcf7db61149ee64cf4eeb9 # v1
with:
version: "3.53.2"
- name: Download figures
run: |
make -C reproducibility/manuscript figures-download
- name: Compute diff
# if: ${{ inputs.diff_enabled == 'true' }}
continue-on-error: false
uses: xu-cheng/texlive-action@3586544d56723b23ab69aec1e9d73e7220d9c313 # v2
with:
scheme: full
run: |
apk add make
git config --global --add safe.directory "${{ github.workspace }}/**"
git config --global --add safe.directory "${{ github.workspace }}"
git config --global --add safe.directory "${{ github.workspace }}/.git"
make -C reproducibility/manuscript latexdiff
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@c1b50d36cf3c22b3dc7e530bd1b36634e824e545 # v2
with:
tinytex: true
- name: Setup tmate debug session
if: ${{ inputs.debug_enabled == 'true' }}
uses: mxschmitt/action-tmate@a283f9441d2d96eb62436dc46d7014f5d357ac22 # v3
- name: Render
run: |
make -C reproducibility/manuscript render
- name: Upload artifacts
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
with:
name: manuscript-${{ github.ref_name }}-${{ github.sha }}
path: |
"${{ github.workspace }}/reproducibility/manuscript/manuscript.*"
"${{ github.workspace }}/reproducibility/manuscript/*diff*"