-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (66 loc) · 2.4 KB
/
manuscript.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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*"