From d640422f6a586bdab265f9f144a46b3d26806c43 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 31 Oct 2024 12:06:37 +0100 Subject: [PATCH 1/5] feat(tooling-ci): Add manual production wallet release workflow --- .github/workflows/apps_wallet_prod_build.yml | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/apps_wallet_prod_build.yml diff --git a/.github/workflows/apps_wallet_prod_build.yml b/.github/workflows/apps_wallet_prod_build.yml new file mode 100644 index 00000000000..3b2ce757dd1 --- /dev/null +++ b/.github/workflows/apps_wallet_prod_build.yml @@ -0,0 +1,46 @@ +name: Build Wallet App (Prod) + +on: + push: + tags: + - 'wallet-v*.*.*' + +env: + DEFAULT_NETWORK: ${{ secrets.WALLET_RC_DEFAULT_NETWORK }} + IOTA_NETWORKS: ${{ secrets.WALLET_RC_IOTA_NETWORKS }} + APPS_BACKEND: ${{ secrets.WALLET_RC_APPS_BACKEND }} + +jobs: + wallet-prod-build: + permissions: + contents: read + runs-on: [self-hosted] + steps: + - name: Checking out the repository + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 + - name: Install Nodejs + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 + with: + node-version: "20" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # pin@v1.3.1 + with: + path: apps/wallet + - name: Create artifact name + shell: bash + run: | + export artifact_name="iota-wallet-${{ steps.package-version.outputs.current-version }}" + echo "artifact_name=${artifact_name}" >> $GITHUB_ENV + - name: Build Wallet + run: pnpm wallet build + - name: Upload artifacts + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # pin@v4 + with: + name: ${{ env.artifact_name }} + path: | + ./apps/wallet/dist From 97e76cf2a02445cb89a8064cb4aa9c3f261e2049 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Mon, 4 Nov 2024 09:48:48 +0100 Subject: [PATCH 2/5] fmt --- .github/workflows/apps_wallet_prod_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/apps_wallet_prod_build.yml b/.github/workflows/apps_wallet_prod_build.yml index 3b2ce757dd1..f4f77f8af5d 100644 --- a/.github/workflows/apps_wallet_prod_build.yml +++ b/.github/workflows/apps_wallet_prod_build.yml @@ -3,7 +3,7 @@ name: Build Wallet App (Prod) on: push: tags: - - 'wallet-v*.*.*' + - "wallet-v*.*.*" env: DEFAULT_NETWORK: ${{ secrets.WALLET_RC_DEFAULT_NETWORK }} From 334bfd439008aa218a4438739098eee0589be5b6 Mon Sep 17 00:00:00 2001 From: Mario Sarcevic Date: Wed, 6 Nov 2024 15:12:55 +0100 Subject: [PATCH 3/5] feat(tooling-ci): Change env vars used from RC to PROD --- .github/workflows/apps_wallet_prod_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/apps_wallet_prod_build.yml b/.github/workflows/apps_wallet_prod_build.yml index f4f77f8af5d..4aff87ced4b 100644 --- a/.github/workflows/apps_wallet_prod_build.yml +++ b/.github/workflows/apps_wallet_prod_build.yml @@ -6,9 +6,9 @@ on: - "wallet-v*.*.*" env: - DEFAULT_NETWORK: ${{ secrets.WALLET_RC_DEFAULT_NETWORK }} - IOTA_NETWORKS: ${{ secrets.WALLET_RC_IOTA_NETWORKS }} - APPS_BACKEND: ${{ secrets.WALLET_RC_APPS_BACKEND }} + DEFAULT_NETWORK: ${{ secrets.WALLET_PROD_DEFAULT_NETWORK }} + IOTA_NETWORKS: ${{ secrets.WALLET_PROD_IOTA_NETWORKS }} + APPS_BACKEND: ${{ secrets.WALLET_PROD_APPS_BACKEND }} jobs: wallet-prod-build: From 25cad20f9acf3d90ef6d4382f59ebba36d17f4a3 Mon Sep 17 00:00:00 2001 From: Marc Espin Date: Wed, 6 Nov 2024 15:51:45 +0100 Subject: [PATCH 4/5] Update .github/workflows/apps_wallet_prod_build.yml Co-authored-by: Mario --- .github/workflows/apps_wallet_prod_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/apps_wallet_prod_build.yml b/.github/workflows/apps_wallet_prod_build.yml index 4aff87ced4b..1b4dbc91f06 100644 --- a/.github/workflows/apps_wallet_prod_build.yml +++ b/.github/workflows/apps_wallet_prod_build.yml @@ -3,7 +3,7 @@ name: Build Wallet App (Prod) on: push: tags: - - "wallet-v*.*.*" + - "wallet-v[0-9]+.[0-9]+.[0-9]+*" env: DEFAULT_NETWORK: ${{ secrets.WALLET_PROD_DEFAULT_NETWORK }} From 28f485ace6fc72705c6664347455409ddd9644f2 Mon Sep 17 00:00:00 2001 From: Marc Espin Date: Wed, 6 Nov 2024 15:56:40 +0100 Subject: [PATCH 5/5] Update .github/workflows/apps_wallet_prod_build.yml Co-authored-by: DaughterOfMars --- .github/workflows/apps_wallet_prod_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/apps_wallet_prod_build.yml b/.github/workflows/apps_wallet_prod_build.yml index 1b4dbc91f06..7bd040b6762 100644 --- a/.github/workflows/apps_wallet_prod_build.yml +++ b/.github/workflows/apps_wallet_prod_build.yml @@ -3,7 +3,7 @@ name: Build Wallet App (Prod) on: push: tags: - - "wallet-v[0-9]+.[0-9]+.[0-9]+*" + - "wallet-v\d+\.\d+\.\d+" env: DEFAULT_NETWORK: ${{ secrets.WALLET_PROD_DEFAULT_NETWORK }}