From 49d42619aa4f78a57db381b07dc2ccc5bdd8a43a Mon Sep 17 00:00:00 2001 From: Gianpiero Date: Wed, 16 Aug 2023 01:17:46 +0200 Subject: [PATCH] add action zip file --- .github/workflows/zip_creation.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/zip_creation.yml diff --git a/.github/workflows/zip_creation.yml b/.github/workflows/zip_creation.yml new file mode 100644 index 0000000..33b226c --- /dev/null +++ b/.github/workflows/zip_creation.yml @@ -0,0 +1,28 @@ +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 + \ No newline at end of file