Skip to content

Commit e70aae0

Browse files
committed
Add a workflow
1 parent d5d3482 commit e70aae0

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/draft-pdf.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (C) The DDC development team, see COPYRIGHT.md file
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
---
6+
name: Draft PDF
7+
8+
# yamllint disable-line rule:truthy
9+
on:
10+
push:
11+
paths:
12+
- '.github/workflows/draft-pdf.yaml'
13+
- paper/**
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
paper:
20+
name: Paper Draft
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- name: Build draft PDF
26+
uses: openjournals/openjournals-draft-action@85a18372e48f551d8af9ddb7a747de685fbbb01c # v1.0.0
27+
with:
28+
journal: joss
29+
# This should be the path to the paper within your repo.
30+
paper-path: paper/paper.md
31+
- name: Upload
32+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
33+
with:
34+
name: paper
35+
# This is the output path where Pandoc will write the compiled
36+
# PDF. Note, this should be the same directory as the input
37+
# paper.md
38+
path: paper/paper.pdf

0 commit comments

Comments
 (0)