Skip to content

Commit fb58d2c

Browse files
chore: move to job-global env for build steps
1 parent 6fa2eaf commit fb58d2c

File tree

5 files changed

+3
-31
lines changed

5 files changed

+3
-31
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
strategy:
2424
matrix:
2525
app_name: ['my', 'buy', 'get']
26+
env:
27+
IMMICH_APP: ${{ matrix.app_name }}.immich.app
28+
PUBLIC_IMMICH_PAY_HOST: ${{ github.ref != 'refs/heads/main' && 'https://futopay-test.azurewebsites.net' || '' }}
2629

2730
steps:
2831
- name: Checkout code
@@ -33,16 +36,6 @@ jobs:
3336
with:
3437
node-version-file: '.nvmrc'
3538

36-
- name: Set app
37-
run: |
38-
touch .env
39-
echo IMMICH_APP="${{ matrix.app_name }}.immich.app" >> .env
40-
41-
- name: Use futopay-test
42-
if: ${{ env.ENVIRONMENT == 'dev' }}
43-
run: |
44-
echo PUBLIC_IMMICH_PAY_HOST=https://futopay-test.azurewebsites.net >> .env
45-
4639
- name: Run npm install
4740
run: npm ci
4841

bin/postbuild.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import { cpSync, existsSync } from 'node:fs';
44
import { join } from 'node:path';
5-
import dotenv from 'dotenv';
6-
7-
dotenv.config();
85

96
const app = process.env.IMMICH_APP;
107

package-lock.json

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@sveltejs/vite-plugin-svelte": "^5.0.2",
2222
"@types/eslint": "^9.0.0",
2323
"autoprefixer": "^10.4.19",
24-
"dotenv": "^16.4.7",
2524
"eslint": "^9.17.0",
2625
"eslint-config-prettier": "^9.1.0",
2726
"eslint-plugin-svelte": "^2.46.1",

svelte.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import adapter from '@sveltejs/adapter-static';
22
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3-
import dotenv from 'dotenv';
4-
5-
dotenv.config();
63

74
process.env.PUBLIC_IMMICH_PAY_HOST = process.env.PUBLIC_IMMICH_PAY_HOST || 'https://pay.futo.org';
85
process.env.PUBLIC_IMMICH_API_HOST = process.env.PUBLIC_IMMICH_API_HOST || 'https://api.immich.app';

0 commit comments

Comments
 (0)