From 6a7dc0c35da8052f7f2912b3941af2b25b560d2d Mon Sep 17 00:00:00 2001 From: DJSchaffner Date: Sun, 18 Feb 2024 01:02:03 +0100 Subject: [PATCH] Update package_release.yml --- .github/workflows/package_release.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/package_release.yml b/.github/workflows/package_release.yml index b66913b..4c906a0 100644 --- a/.github/workflows/package_release.yml +++ b/.github/workflows/package_release.yml @@ -1,8 +1,9 @@ name: Package Release on: - release: - types: [published] + push: + tags: + - 'v*' jobs: release: @@ -12,14 +13,12 @@ jobs: - uses: actions/checkout@v3 - name: Zip folder - run: zip -r BetterBags_ItemRack.zip . -x .git/\* .github/\* .vscode/\* \*.bat icon.png readme.md + run: zip -r BetterBags_ItemRack-${{ github.ref_name }}.zip . -x .git/\* .github/\* .vscode/\* \*.bat icon.png readme.md - name: Upload Release Asset - uses: actions/upload-release-asset@v1 + uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.token }} with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./BetterBags_ItemRack.zip - asset_name: BetterBags_ItemRack-${{ github.ref_name }}.zip - asset_content_type: application/zip + body: ${{ github.workspace }} + files: ./BetterBags_ItemRack-${{ github.ref_name }}.zip