Skip to content

Commit 63c04ae

Browse files
committed
Trim github.ref to just version
1 parent 13fa61b commit 63c04ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pdf.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Generate PDF
22

33
on:
4-
push:
5-
branches: [pdf]
6-
# release:
7-
# types: [published]
4+
release:
5+
types: [published]
86

97
jobs:
108
generate:
@@ -16,9 +14,11 @@ jobs:
1614
- uses: actions/setup-node@v1
1715
with:
1816
node-version: '12'
19-
- name: Install converter + uploader
17+
- name: Install converter + uploadergit
2018
run: npm install docsify-pdf-converter @iomeg/zenodo-upload
2119
- name: Generate PDF
2220
run: npx docsify-pdf-converter
2321
- name: Upload PDF to Zenodo
24-
run: npx --package @iomeg/zenodo-upload zenodo_upload --sandbox 351033 guide-nlesc.pdf ${{ github.ref }} ${{ secrets.ZENODO_TOKEN }}
22+
run: npx --package @iomeg/zenodo-upload zenodo_upload --sandbox 351033 guide-nlesc.pdf "${github_ref:10}" ${{ secrets.ZENODO_TOKEN }}
23+
env:
24+
github_ref: ${{ github.ref }}

0 commit comments

Comments
 (0)