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