Skip to content

Commit

Permalink
Update package_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner authored Feb 18, 2024
1 parent a85319f commit 6a7dc0c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/package_release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Package Release

on:
release:
types: [published]
push:
tags:
- 'v*'

jobs:
release:
Expand All @@ -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

0 comments on commit 6a7dc0c

Please sign in to comment.