-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (96 loc) · 3.44 KB
/
deploy.yaml
File metadata and controls
107 lines (96 loc) · 3.44 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
name: Deploy
on:
push:
branches:
- main
- renovate/**
pull_request:
concurrency:
cancel-in-progress: true
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
chktex:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/chktex@d84abe24680d395c2898a89ae7dd26233de0d4cb # v0
vale:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-slim
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/vale@d84abe24680d395c2898a89ae7dd26233de0d4cb # v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vale-flags: --glob='!{config/,figures/*/example_,thesis}*'
compile-latex:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/compile@d84abe24680d395c2898a89ae7dd26233de0d4cb # v0
- name: Upload artefacts
# yamllint disable-line rule:line-length
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: artefacts
path: |-
*.bib
*.bcf
*.pdf
if-no-files-found: error
check-citations-referenced:
permissions:
contents: read
runs-on: ubuntu-latest
needs: compile-latex
steps:
- name: Download artefacts
# yamllint disable-line rule:line-length
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
with:
name: artefacts
- name: Fix regex for checkcites
# yamllint disable-line rule:line-length
uses: xu-cheng/texlive-action@22c04326a5d855880f9d39bb955138bf11c6df80 # v3
id: references
with:
scheme: full
run: >-
sed -i 's#\sglob="false"##' thesis.bcf; echo uncited=$(checkcites -b
biber thesis -u | grep -c "=>") >> $GITHUB_OUTPUT
- name: Check all references cited
if: ${{ steps.references.outputs.uncited > 0 }}
# yamllint disable-line rule:line-length
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
script: core.setFailed('Not all references cited')
upload-to-dropbox:
if: github.ref == 'refs/heads/main'
needs: compile-latex
permissions:
contents: read
runs-on: ubuntu-slim
steps:
- name: Download artefacts
# yamllint disable-line rule:line-length
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
with:
name: artefacts
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/dropbox@d84abe24680d395c2898a89ae7dd26233de0d4cb # v0
with:
# yamllint disable rule:line-length
configfile-version: ${{ secrets.CONFIGFILE_VERSION }} # zizmor: ignore[secrets-outside-env]
files-to-upload: $(find . -maxdepth 1 -name '*.pdf' -print)
oauth-app-key: ${{ secrets.OAUTH_APP_KEY }} # zizmor: ignore[secrets-outside-env]
oauth-app-secret: ${{ secrets.OAUTH_APP_SECRET }} # zizmor: ignore[secrets-outside-env]
oauth-refresh-token: ${{ secrets.OAUTH_REFRESH_TOKEN }} # zizmor: ignore[secrets-outside-env]
# yamllint enable rule:line-length