From e22f75831453482efb1abed06526d4a212472e5f Mon Sep 17 00:00:00 2001 From: Hjort Date: Thu, 30 Nov 2023 17:20:52 +0100 Subject: [PATCH] Use package version for chrome extension file name --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a45cf29..200d057 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: # Pattern matched against refs/tags tags: - '*' # Push events to every tag not containing / + branches: [build-upload-extension] # Allows us to run the workflow manually from the Actions tab workflow_dispatch: @@ -28,10 +29,15 @@ jobs: run: flutter pub get - name: Build Extension run: flutter build web --web-renderer html --csp --release + - name: Get package version + id: package_version + uses: mikefarah/yq@master + with: + cmd: yq .version pubspec.yaml - name: Upload Bundle uses: actions/upload-artifact@v3 with: - name: concordium-wallet-web-${{ github.ref_name }} + name: concordium-wallet-web-${{ steps.package_version.outputs.result }} # We package everything except the canvaskit, which we don't use path: | "${{github.workspace}}/build/web/"