Skip to content

Commit

Permalink
fix: fix 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 19ce59e commit 412c184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
npm install -g yarn
yarn install
sh build.sh ${GITHUB_REF_NAME#v}
echo "VERSION=${GITHUB_REF_NAME}" >> "$GITHUB_ENV"
- name: Update release with files
uses: ncipollo/release-action@v1
Expand All @@ -36,6 +37,6 @@ jobs:
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.VERSION }}.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 412c184

Please sign in to comment.