-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (34 loc) · 1.12 KB
/
draft-pdf.yml
File metadata and controls
39 lines (34 loc) · 1.12 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
# name: Draft PDF
# on:
# push:
# paths:
# - paper/**
# - .github/workflows/draft-pdf.yml
# jobs:
# paper:
# runs-on: ubuntu-latest
# name: Paper Draft
# steps:
# # Step 1: Checkout repository
# - name: Checkout
# uses: actions/checkout@v4
# with:
# lfs: true
# # Step 2: Build draft PDF using Open Journals action
# - name: Build draft PDF
# uses: openjournals/openjournals-draft-action@master
# with:
# journal: joss # or "jose" for JOSE submissions
# paper-path: paper/paper.md # Path to your paper markdown file
# # Step 3: Upload artifact for download
# - name: Upload
# uses: actions/upload-artifact@v4
# with:
# name: paper
# path: paper/paper.pdf # Output PDF path
# # Step 4 (Optional): Commit the generated PDF back to the repo
# - name: Commit PDF to repository
# uses: EndBug/add-and-commit@v9
# with:
# message: '(auto) Paper PDF Draft'
# add: 'paper/*.pdf' # or 'paper/*.pdf' for multiple PDFs