Skip to content

Commit fb6d9a9

Browse files
committed
chore: update CI workflows
1 parent 907a14c commit fb6d9a9

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ on:
44
push:
55
branches:
66
- '*'
7-
workflow_call: # Allow this workflow to be called by other workflows
87

98
jobs:
109
ci:
1110
runs-on: ubuntu-latest
12-
environment: Testnet
11+
environment: preview
1312
steps:
1413
- uses: actions/checkout@v4
1514

@@ -37,5 +36,5 @@ jobs:
3736
- name: Test
3837
run: pnpm run test
3938
env:
40-
NUXT_RPC_URL: ${{ secrets.RPC_URL }}
39+
NUXT_RPC_URL: ${{ secrets.NUXT_RPC_URL }}
4140
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}

.github/workflows/nuxt-hub.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
jobs:
88
deploy-testnet:
9-
needs: [ci]
109
name: Deploy to NuxtHub Testnet
1110
runs-on: ubuntu-latest
1211
environment:
@@ -30,9 +29,15 @@ jobs:
3029

3130
- name: Install dependencies
3231
run: pnpm install
32+
env:
33+
NUXT_RPC_URL: ${{ secrets.NUXT_RPC_URL }}
34+
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}
3335

3436
- name: Build application
3537
run: pnpm run build
38+
env:
39+
NUXT_RPC_URL: ${{ secrets.NUXT_RPC_URL }}
40+
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}
3641

3742
- name: Deploy to NuxtHub Testnet
3843
uses: nuxt-hub/action@v1
@@ -41,7 +46,6 @@ jobs:
4146
project-key: ${{ secrets.NUXT_HUB_PROJECT_KEY }}
4247

4348
deploy-mainnet:
44-
needs: [ci]
4549
name: Deploy to NuxtHub Mainnet
4650
runs-on: ubuntu-latest
4751
environment:
@@ -65,15 +69,18 @@ jobs:
6569

6670
- name: Install dependencies
6771
run: pnpm install
72+
env:
73+
NUXT_RPC_URL: ${{ secrets.NUXT_RPC_URL }}
74+
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}
6875

6976
- name: Build application
7077
run: pnpm run build
78+
env:
79+
NUXT_RPC_URL: ${{ secrets.NUXT_RPC_URL }}
80+
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}
7181

7282
- name: Deploy to NuxtHub Mainnet
7383
uses: nuxt-hub/action@v1
7484
id: deploy-mainnet
7585
with:
7686
project-key: ${{ secrets.NUXT_HUB_PROJECT_KEY }}
77-
78-
ci:
79-
uses: ./.github/workflows/ci.yml

.github/workflows/pkg.new.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
jobs:
88
build:
9-
needs: [ci]
109
runs-on: ubuntu-latest
1110

1211
steps:
@@ -27,6 +26,3 @@ jobs:
2726
run: pnpm build
2827

2928
- run: pnpx pkg-pr-new publish './packages/*'
30-
31-
ci:
32-
uses: ./.github/workflows/ci.yml

0 commit comments

Comments
 (0)