Skip to content

Commit 950c386

Browse files
committed
Ensure .env.staging is used for prerelease builds
1 parent ba07feb commit 950c386

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/actions/before-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
description: 'OS name (linux | darwin | win32)'
66
required: true
77
envfile:
8-
description: 'Env file to use (.env.production | .env.development | .env.e2e | .env.e2e.qss)'
8+
description: 'Env file to use (.env.production | .env.staging | .env.development | .env.e2e | .env.e2e.qss)'
99
required: false
1010
default: '.env.production'
1111

.github/workflows/desktop-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
uses: ./.github/actions/before-build
7272
with:
7373
source-path: ${{ matrix.source_path }}
74-
envfile: .env.development
74+
envfile: .env.staging
7575

7676
- name: Build desktop preview
7777
shell: bash
@@ -164,7 +164,6 @@ jobs:
164164
uses: ./.github/actions/setup-env
165165
with:
166166
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/desktop,backend-bundle,helia,@quiet/node-common"
167-
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
168167

169168
- name: Install libfuse
170169
run: sudo apt install libfuse2
@@ -173,6 +172,7 @@ jobs:
173172
uses: ./.github/actions/before-build
174173
with:
175174
source-path: linux
175+
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
176176

177177
- name: "Set electron-builder props"
178178
run: echo "ELECTRON_BUILDER_PROPS=-c.publish.bucket=$S3_BUCKET" >> $GITHUB_ENV
@@ -253,12 +253,12 @@ jobs:
253253
uses: ./.github/actions/setup-env
254254
with:
255255
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/desktop,backend-bundle,helia,@quiet/node-common"
256-
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
257256

258257
- name: Before build
259258
uses: ./.github/actions/before-build
260259
with:
261260
source-path: darwin
261+
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
262262

263263
- name: "Remove crud files"
264264
run: xattr -crs .
@@ -334,12 +334,12 @@ jobs:
334334
uses: ./.github/actions/setup-env
335335
with:
336336
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/desktop,backend-bundle,helia,@quiet/node-common"
337-
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
338337

339338
- name: Before build
340339
uses: ./.github/actions/before-build
341340
with:
342341
source-path: darwin
342+
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
343343

344344
- name: "Remove crud files"
345345
run: xattr -crs .
@@ -430,6 +430,7 @@ jobs:
430430
uses: ./.github/actions/before-build
431431
with:
432432
source-path: win32
433+
envfile: ${{ github.event.release.prerelease && '.env.staging' || '.env.production' }}
433434

434435
- name: "Set electron-builder props"
435436
shell: bash

0 commit comments

Comments
 (0)