Skip to content

Commit

Permalink
Update GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
yanecc committed Jun 9, 2024
1 parent cb08eb4 commit 40304ee
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/Publish for release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish for release
name: Publish for Release

on:
release:
types: [published]

jobs:
Publish:
name: Publish to Releases
name: Publish for Release
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
Expand All @@ -23,12 +23,9 @@ jobs:
echo "FILE_NAME=$FILE_NAME" >> $GITHUB_OUTPUT
echo "PLUGIN=${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT
- name: Archive Release
uses: thedoctor0/zip-release@0.7.6
- uses: edgarrc/action-7z@v1
with:
type: "zip"
filename: ${{ steps.get_name.outputs.FILE_NAME }}
exclusions: "*.git* .*"
args: 7z a -tzip -mx=9 -xr!*.git* -xr!.* ${{ steps.get_name.outputs.FILE_NAME }}

- name: Publish to Releases
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 40304ee

Please sign in to comment.