Skip to content

Commit

Permalink
Add asset label
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Oct 27, 2023
1 parent a5f0d59 commit 37c0994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/datasheet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
- name: Run Tectonic
run: tectonic datasheet/datasheet.tex

- name: Upload pdf as artifact
- name: Upload PDF as artifact
if: github.event.action != 'published'
uses: actions/upload-artifact@v3
with:
name: datasheet
path: datasheet/datasheet.pdf

- name: Upload pdf files
- name: Append PDF as an asset
if: github.event.action == 'published'
run: gh release upload ${{ github.ref_name }} datasheet/datasheet.pdf
run: gh release upload ${{ github.ref_name }} datasheet/datasheet.pdf#'Device datasheet'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash

0 comments on commit 37c0994

Please sign in to comment.