From cc0e9126e675f909cb1d39258b31eed188adbaf3 Mon Sep 17 00:00:00 2001 From: haritabh-z01 Date: Tue, 11 Nov 2025 22:00:03 +0530 Subject: [PATCH] chore: update release wf to support cloud --- .github/workflows/release.yml | 8 ++++++++ apps/desktop/vite.main.config.mts | 4 ++++ turbo.json | 6 +++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9766c80..0d40be2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,6 +132,10 @@ jobs: POSTHOG_HOST: https://app.posthog.com TELEMETRY_ENABLED: true POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} + AUTH_CLIENT_ID: ${{ secrets.AUTH_CLIENT_ID }} + AUTHORIZATION_ENDPOINT: ${{ secrets.AUTHORIZATION_ENDPOINT }} + TOKEN_ENDPOINT: ${{ secrets.TOKEN_ENDPOINT }} + API_ENDPOINT: ${{ secrets.API_ENDPOINT }} run: | echo "Building macOS ${{ matrix.arch }} artifacts" pnpm make:${{ matrix.arch }} @@ -143,6 +147,10 @@ jobs: POSTHOG_HOST: https://app.posthog.com TELEMETRY_ENABLED: true POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} + AUTH_CLIENT_ID: ${{ secrets.AUTH_CLIENT_ID }} + AUTHORIZATION_ENDPOINT: ${{ secrets.AUTHORIZATION_ENDPOINT }} + TOKEN_ENDPOINT: ${{ secrets.TOKEN_ENDPOINT }} + API_ENDPOINT: ${{ secrets.API_ENDPOINT }} run: | echo "Building Windows x64 artifacts" pnpm make:windows diff --git a/apps/desktop/vite.main.config.mts b/apps/desktop/vite.main.config.mts index 74cb813..6fc1a45 100644 --- a/apps/desktop/vite.main.config.mts +++ b/apps/desktop/vite.main.config.mts @@ -11,6 +11,10 @@ export default defineConfig({ __BUNDLED_TELEMETRY_ENABLED: JSON.stringify( process.env.TELEMETRY_ENABLED !== "false", ), + __BUNDLED_AUTH_CLIENT_ID: JSON.stringify(process.env.AUTH_CLIENT_ID || ""), + __BUNDLED_AUTH_AUTHORIZATION_ENDPOINT: JSON.stringify(process.env.AUTHORIZATION_ENDPOINT || ""), + __BUNDLED_AUTH_TOKEN_ENDPOINT: JSON.stringify(process.env.AUTH_TOKEN_ENDPOINT || ""), + __BUNDLED_API_ENDPOINT: JSON.stringify(process.env.API_ENDPOINT || ""), }, build: { rollupOptions: { diff --git a/turbo.json b/turbo.json index ba52435..1cf8813 100644 --- a/turbo.json +++ b/turbo.json @@ -28,7 +28,11 @@ "S3_ENDPOINT", "POSTHOG_API_KEY", "POSTHOG_HOST", - "TELEMETRY_ENABLED" + "TELEMETRY_ENABLED", + "AUTH_CLIENT_ID", + "AUTHORIZATION_ENDPOINT", + "TOKEN_ENDPOINT", + "API_ENDPOINT" ] }, "build:native": {