From 63c04aed64dafe634638f1895cd3e7bd8959dbca Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Wed, 9 Sep 2020 14:10:53 +0200 Subject: [PATCH] Trim github.ref to just version --- .github/workflows/pdf.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index 5067a08..495cfe5 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -1,10 +1,8 @@ name: Generate PDF on: - push: - branches: [pdf] - # release: - # types: [published] + release: + types: [published] jobs: generate: @@ -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 }} \ No newline at end of file