-
Notifications
You must be signed in to change notification settings - Fork 52
47 lines (41 loc) · 1.09 KB
/
joss.yml
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
name: JOSS
on:
push:
branches:
- main
paths:
- "joss/**"
jobs:
joss:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate .tex
uses: docker://openjournals/paperdraft:latest
with:
args: joss/paper.md --defaults=metadata.yaml --to=latex --output=paper.tex
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: joss
- name: Generate .pdf
uses: docker://openjournals/paperdraft:latest
with:
args: joss/paper.md --defaults=metadata.yaml
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: joss
- name: Upload the generated files as an artifact
uses: actions/upload-artifact@v4
with:
path: joss
name: joss
- name: Deploy
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./joss
force_orphan: true
publish_branch: joss-compiled