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