From cfa000c17f1a7909a17cb3dbca2cd972b73ec3ef Mon Sep 17 00:00:00 2001 From: patuwwy Date: Tue, 14 Nov 2023 23:14:35 +0100 Subject: [PATCH] Update workflow --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36131c6..e27f8f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,8 +2,8 @@ name: Release on: push: - tags: - - '*' + branches: + - main jobs: zip-release: @@ -23,7 +23,7 @@ jobs: run: echo "::set-output name=version::$(jq -r .version app/manifest.json)" - name: Zip subdirectory - run: zip -r $RELEASE_ZIP_FILENAME-${{ steps.version.outputs.version }}.zip ./$SOURCE_SUBDIRECTORY/ + run: zip -r ${{ env.RELEASE_ZIP_FILENAME }}-${{ steps.version.outputs.version }}.zip ./${{ env.SOURCE_SUBDIRECTORY }} - name: Create Release id: create_release @@ -43,6 +43,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: "./$RELEASE_ZIP_FILENAME-${{ steps.version.outputs.version }}.zip" - asset_name: "$RELEASE_ZIP_FILENAME-${{ steps.version.outputs.version }}.zip" + asset_path: ${{ env.RELEASE_ZIP_FILENAME }}-${{ steps.version.outputs.version }}.zip" + asset_name: ${{ env.RELEASE_ZIP_FILENAME }}-${{ steps.version.outputs.version }}.zip" asset_content_type: application/zip