From 0dc0358aaff07e9619824a71540ad57e897d6fa7 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 3 Dec 2022 13:55:37 -0800 Subject: [PATCH] ci build ext: publish to release asset, use same name convention as app, run only on main branch --- .github/workflows/buildext.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/buildext.yaml b/.github/workflows/buildext.yaml index c8253eec..280e7bda 100644 --- a/.github/workflows/buildext.yaml +++ b/.github/workflows/buildext.yaml @@ -1,6 +1,9 @@ name: Build Extension Zip -on: push +on: + push: + branches: + - main jobs: release: @@ -22,17 +25,19 @@ jobs: - name: Yarn Build run: yarn run build - - name: Create ZIP for Extension - run: | - cd dist/ext - zip ../ext.zip -r ./ - - name: Get Package Version id: package-version uses: martinbeentjes/npm-get-version-action@main + - name: Create ZIP for Extension + run: | + cd dist/ext + zip ../../ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip -r ./ + - name: Upload Extension ZIP - uses: actions/upload-artifact@v3 + uses: softprops/action-gh-release@v1 with: - name: archivewebpage-ext-${{ steps.package-version.outputs.current-version}}.zip - path: dist/ext.zip + files: ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip + tag_name: v${{ steps.package-version.outputs.current-version }} + fail_on_unmatched_files: true + draft: true