forked from IslasGECI/nerd
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.23 KB
/
draft-pdf.yml
File metadata and controls
33 lines (32 loc) · 1.23 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
name: JOSS PDF Generator
on: [push]
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build demo Docker image
run: docker build --file Dockerfile.demo --tag=islasgeci/nerd_demo:latest .
- name: Merge notebooks
run: docker run --volume $PWD/examples:/workdir islasgeci/nerd_demo:latest bash -c "nbmerge /workdir/proceedings.ipynb /workdir/calibration-demo.ipynb /workdir/tiling_demo.ipynb > paper.ipynb && jupyter nbconvert /workdir/paper.ipynb --to markdown"
- name: Build proceedings PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
paper-path: examples/paper.md
- name: Upload
uses: actions/upload-artifact@main
with:
name: paper
path: examples/paper.pdf
- name: Auto-commit paper.md
uses: stefanzweifel/git-auto-commit-action@master
with:
commit_message: 🤖 Apply automatic changes
file_pattern: 'examples/paper.md figures/*.png'
commit_user_name: Ciencia de Datos • GECI
commit_user_email: ciencia.datos@islas.org.mx