Skip to content

Commit 3754018

Browse files
Test if the workflow works
1 parent b06581b commit 3754018

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/draft-pdf.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- paper
66
- paper-draft
7+
- paper-workflow
78
pull_request:
89
types: [opened, synchronize, reopened]
910

@@ -20,11 +21,32 @@ jobs:
2021
journal: joss
2122
# This should be the path to the paper within your repo.
2223
paper-path: paper/paper.md
23-
- name: Upload
24+
- name: Upload pdf artifact
2425
uses: actions/upload-artifact@v4
2526
with:
2627
name: paper
2728
# This is the output path where Pandoc will write the compiled
2829
# PDF. Note, this should be the same directory as the input
2930
# paper.md
3031
path: paper/paper.pdf
32+
- name: Create release
33+
if: github.event_name == 'push'
34+
uses: rymndhng/release-on-push-action@master
35+
id: release
36+
with:
37+
bump_version_scheme: patch
38+
tag_prefix: v
39+
release_body: ""
40+
use_github_release_notes: true
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
- name: Upload PDF to release
44+
if: github.event_name == 'push'
45+
uses: svenstaro/upload-release-action@v2
46+
with:
47+
repo_token: ${{ secrets.GITHUB_TOKEN }}
48+
file: paper/paper.pdf
49+
asset_name: joss-draft.pdf
50+
tag: ${{ steps.release.outputs.tag_name }}
51+
overwrite: true
52+
body: ""

0 commit comments

Comments
 (0)