-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.87 KB
/
deploy.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
---
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:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/chktex@be31e8f5758700dafb58c5852530e750f1ea69d8 # v0
vale:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/vale@be31e8f5758700dafb58c5852530e750f1ea69d8 # v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
compile-latex:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/compile@be31e8f5758700dafb58c5852530e750f1ea69d8 # v0
- name: Upload artefacts
# yamllint disable-line rule:line-length
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: artefacts
path: "*.pdf"
if-no-files-found: error
upload-to-dropbox:
runs-on: ubuntu-latest
needs: compile-latex
steps:
- name: Download artefacts
# yamllint disable-line rule:line-length
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4
with:
name: artefacts
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/dropbox@be31e8f5758700dafb58c5852530e750f1ea69d8 # v0
with:
configfile-version: ${{ secrets.CONFIGFILE_VERSION }}
files-to-upload: $(find . -maxdepth 1 -name '*.pdf' -print)
oauth-app-key: ${{ secrets.OAUTH_APP_KEY }}
oauth-app-secret: ${{ secrets.OAUTH_APP_SECRET }}
oauth-refresh-token: ${{ secrets.OAUTH_REFRESH_TOKEN }}