Skip to content

Build Wallet App (nightly) #22

Build Wallet App (nightly)

Build Wallet App (nightly) #22

name: Build Wallet App (nightly)
on:
schedule:
# At 20:58 on every day-of-week from Monday through Friday
- cron: "58 20 * * 1-5"
workflow_dispatch:
env:
DEFAULT_NETWORK: ${{ secrets.WALLET_NIGHTLY_BUILD_DEFAULT_NETWORK }}
IOTA_NETWORKS: ${{ secrets.WALLET_NIGHTLY_BUILD_IOTA_NETWORKS }}
APPS_BACKEND: ${{ secrets.WALLET_NIGHTLY_BUILD_APPS_BACKEND }}
TAG_NAME: "${{ github.event.inputs.iota_branch || 'develop' }}"
jobs:
wallet-nightly-build:
permissions:
contents: read
pull-requests: write
runs-on: [self-hosted]
steps:
- name: Create artifact name
shell: bash
run: |
export artifact_name="wallet-nightly-$(date -Idate)"
echo "artifact_name=${artifact_name}" >> $GITHUB_ENV
- name: Checking out
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4
- name: Install Nodejs
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # pin@v4
with:
path: node_modules/.cache/turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-
- name: Build Wallet
run: pnpm wallet build:nightly
- name: Upload artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # pin@v4
with:
name: ${{ env.artifact_name }}
path: |
./apps/wallet/dist