Skip to content

Commit

Permalink
feat(tooling-ci): Add production wallet release workflow (#3820)
Browse files Browse the repository at this point in the history
* feat(tooling-ci): Add manual production wallet release workflow

* fmt

* feat(tooling-ci): Change env vars used from RC to PROD

* Update .github/workflows/apps_wallet_prod_build.yml

Co-authored-by: Mario <[email protected]>

* Update .github/workflows/apps_wallet_prod_build.yml

Co-authored-by: DaughterOfMars <[email protected]>

---------

Co-authored-by: Mario Sarcevic <[email protected]>
Co-authored-by: DaughterOfMars <[email protected]>
  • Loading branch information
3 people authored and begonaalvarezd committed Nov 6, 2024
1 parent 3364ef7 commit 444b1b4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/apps_wallet_prod_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Wallet App (Prod)

on:
push:
tags:
- "wallet-v\d+\.\d+\.\d+"

env:
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:
permissions:
contents: read
runs-on: [self-hosted]
steps:
- name: Checking out the repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected]
- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # [email protected]
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 # [email protected]
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

0 comments on commit 444b1b4

Please sign in to comment.