Skip to content

Commit

Permalink
fix: properly use artifacts for release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ceriath <[email protected]>
  • Loading branch information
ceriath committed Nov 29, 2023
1 parent 3e99ecf commit 5ac370c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jobs:
- name: Update release with files
uses: ncipollo/release-action@v1
env:
GITHUB_REF_NAME: ${GITHUB_REF_NAME}
with:
allowUpdates: true
name: ${{ github.event.release.name }}
draft: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './system.json, ./dist/candelafvtt-${GITHUB_REF_NAME}.zip'
artifacts: 'dist/system.json, dist/candelafvtt-${{ env.GITHUB_REF_NAME }}.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ rm -rf dist/
mkdir dist
yarn gulp build
yarn gulp pack
zip -r dist/candelafvtt-v${1}.zip css/ img/ lang/ module/ packs/ templates/ ./CHANGELOG.md ./LICENSE.txt ./NOTES.md ./system.json ./template.json -x "packs/src/*"
zip -r dist/candelafvtt-v${1}.zip css/ img/ lang/ module/ packs/ templates/ ./CHANGELOG.md ./LICENSE.txt ./NOTES.md ./system.json ./template.json -x "packs/src/*"
cp system.json dist/

0 comments on commit 5ac370c

Please sign in to comment.