From d30dc3ab16f386956cbca951cf6521a7fb73a48f Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Mon, 6 May 2024 13:12:10 +0200 Subject: [PATCH 1/2] Add extension build artifacts to release workflow --- .changelog/1922.internal.md | 1 + .github/workflows/release.yml | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changelog/1922.internal.md diff --git a/.changelog/1922.internal.md b/.changelog/1922.internal.md new file mode 100644 index 0000000000..ac17db28a6 --- /dev/null +++ b/.changelog/1922.internal.md @@ -0,0 +1 @@ +Add extension build artifacts to GitHub workflows diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a80710bf0f..3b6c7e7ae0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,8 +31,10 @@ jobs: cache: yarn - name: Install dependencies run: yarn install --frozen-lockfile - - name: Build app + - name: Build web ROSE Wallet run: yarn build + - name: Build extension ROSE Wallet + run: yarn build:ext - name: Set workflow variables # Id is needed to access output in a next step. id: vars @@ -40,10 +42,14 @@ jobs: # and use short SHA of the commit for file name. run: | echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')" >> "$GITHUB_OUTPUT" - - name: Create zip file + - name: Create web ROSE Wallet zip file run: | cd build/ zip -r ../rose-wallet-web-${{ steps.vars.outputs.VERSION }}.zip . + - name: Create extension ROSE Wallet zip file + run: | + cd build-ext/ + zip -r ../rose-wallet-ext-${{ steps.vars.outputs.VERSION }}.zip . - name: Parse CHANGELOG.md file and extract changes for the given version uses: buberdds/extract-changelog-action@v1 id: changelog @@ -54,6 +60,7 @@ jobs: with: files: | rose-wallet-web-${{ steps.vars.outputs.VERSION }}.zip + rose-wallet-ext-${{ steps.vars.outputs.VERSION }}.zip build/Content-Security-Policy.txt build/Permissions-Policy.txt name: ROSE Wallet ${{ steps.vars.outputs.VERSION }} From 952e9271f5241a15cab7c150633e783d275202dc Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Mon, 6 May 2024 13:12:37 +0200 Subject: [PATCH 2/2] Add extension build artifacts to build workflow --- .github/workflows/ci-build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 1aa928cce7..476081b53b 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -38,12 +38,19 @@ jobs: id: vars run: | echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - - name: Build app + - name: Build web ROSE Wallet run: yarn build - - name: Upload build artifacts - # Upload build artifacts on push event. + - name: Build extension ROSE Wallet + run: yarn build:ext + - name: Upload web ROSE Wallet build artifacts if: github.event_name == 'push' uses: actions/upload-artifact@v4 with: name: rose-wallet-web-${{ steps.vars.outputs.SHORT_SHA }} path: build + - name: Upload extension ROSE Wallet build artifacts + if: github.event_name == 'push' + uses: actions/upload-artifact@v4 + with: + name: rose-wallet-ext-${{ steps.vars.outputs.SHORT_SHA }} + path: build-ext