Skip to content

Commit

Permalink
Trim github.ref to just version
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Sep 9, 2020
1 parent 13fa61b commit 63c04ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Generate PDF

on:
push:
branches: [pdf]
# release:
# types: [published]
release:
types: [published]

jobs:
generate:
Expand All @@ -16,9 +14,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install converter + uploader
- name: Install converter + uploadergit
run: npm install docsify-pdf-converter @iomeg/zenodo-upload
- name: Generate PDF
run: npx docsify-pdf-converter
- name: Upload PDF to Zenodo
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 comments on commit 63c04ae

Please sign in to comment.