File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Generate PDF
2
2
3
3
on :
4
- push :
5
- branches : [pdf]
6
- # release:
7
- # types: [published]
4
+ release :
5
+ types : [published]
8
6
9
7
jobs :
10
8
generate :
16
14
- uses : actions/setup-node@v1
17
15
with :
18
16
node-version : ' 12'
19
- - name : Install converter + uploader
17
+ - name : Install converter + uploadergit
20
18
run : npm install docsify-pdf-converter @iomeg/zenodo-upload
21
19
- name : Generate PDF
22
20
run : npx docsify-pdf-converter
23
21
- 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 }}
You can’t perform that action at this time.
0 commit comments