We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13fa61b commit 63c04aeCopy full SHA for 63c04ae
1 file changed
.github/workflows/pdf.yml
@@ -1,10 +1,8 @@
1
name: Generate PDF
2
3
on:
4
- push:
5
- branches: [pdf]
6
- # release:
7
- # types: [published]
+ release:
+ types: [published]
8
9
jobs:
10
generate:
@@ -16,9 +14,11 @@ jobs:
16
14
- uses: actions/setup-node@v1
17
15
with:
18
node-version: '12'
19
- - name: Install converter + uploader
+ - name: Install converter + uploadergit
20
run: npm install docsify-pdf-converter @iomeg/zenodo-upload
21
- name: Generate PDF
22
run: npx docsify-pdf-converter
23
- name: Upload PDF to Zenodo
24
- run: npx --package @iomeg/zenodo-upload zenodo_upload --sandbox 351033 guide-nlesc.pdf ${{ github.ref }} ${{ secrets.ZENODO_TOKEN }}
+ run: npx --package @iomeg/zenodo-upload zenodo_upload --sandbox 351033 guide-nlesc.pdf "${github_ref:10}" ${{ secrets.ZENODO_TOKEN }}
+ env:
+ github_ref: ${{ github.ref }}
0 commit comments