Skip to content

Commit

Permalink
Update zip_creation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jumping2000 authored Jan 7, 2024
1 parent 3131334 commit cca6bc5
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/zip_creation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
on:
release:
types: [published]

permissions:
contents: write

jobs:
zip-files:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3

- name: 📦 Create zip file for notifier
run: |
cd "${{ github.workspace }}/apps"
zip -r notifier.zip notifier
- name: 📤 Upload the zip file as a release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "${{ github.workspace }}/apps/notifier.zip"
asset_name: notifier.zip
tag: ${{ github.ref }}
overwrite: true

release:
types: [published]
permissions:
contents: write
jobs:
zip-files:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3
- name: 📦 Create zip file for notifier
run: |
cd "${{ github.workspace }}/apps"
zip -r notifier.zip notifier
- name: 📤 Upload the zip file as a release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "${{ github.workspace }}/apps/notifier.zip"
asset_name: notifier.zip
tag: ${{ github.ref }}
overwrite: true

0 comments on commit cca6bc5

Please sign in to comment.