From 6d9aecbab671aebc085336123154a85edbdcf7c9 Mon Sep 17 00:00:00 2001 From: Ceriath Date: Wed, 29 Nov 2023 23:01:57 +0100 Subject: [PATCH] fix: fix release workflow Signed-off-by: Ceriath --- .github/workflows/release.yml | 3 ++- build.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db378e8..fe21965 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} diff --git a/build.sh b/build.sh index 07da88c..257494d 100755 --- a/build.sh +++ b/build.sh @@ -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/*" \ No newline at end of file +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/ \ No newline at end of file