-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (49 loc) · 1.76 KB
/
apps_wallet_nightly_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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