From aaaed5ac14709e46876ac43fa4ec0c341c717624 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 28 Nov 2023 06:59:48 +0000 Subject: [PATCH] fix(core): nx cache configuration (#5065) --- .github/workflows/deploy.yml | 6 ++---- packages/frontend/core/project.json | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ce0874e734..e12cf1629f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,6 @@ on: default: canary env: - BUILD_TYPE: canary APP_NAME: affine NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} @@ -17,7 +16,6 @@ jobs: build-server: name: Build Server runs-on: ubuntu-latest - environment: ${{ github.event.inputs.flavor }} steps: - uses: actions/checkout@v4 - name: Setup Node.js @@ -48,7 +46,7 @@ jobs: R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }} R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} - BUILD_TYPE_OVERRIDE: ${{ github.event.inputs.flavor }} + BUILD_TYPE: ${{ github.event.inputs.flavor }} SHOULD_REPORT_TRACE: true TRACE_REPORT_ENDPOINT: ${{ secrets.TRACE_REPORT_ENDPOINT }} CAPTCHA_SITE_KEY: ${{ secrets.CAPTCHA_SITE_KEY }} @@ -205,7 +203,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Deploy to dev + - name: Deploy to ${{ github.event.inputs.flavor }} uses: ./.github/actions/deploy with: build-type: ${{ github.event.inputs.flavor }} diff --git a/packages/frontend/core/project.json b/packages/frontend/core/project.json index ee354d7c39..ae85c4b3a4 100644 --- a/packages/frontend/core/project.json +++ b/packages/frontend/core/project.json @@ -25,6 +25,9 @@ { "env": "BUILD_TYPE" }, + { + "env": "BUILD_TYPE_OVERRIDE" + }, { "env": "PERFSEE_TOKEN" }, @@ -48,6 +51,24 @@ }, { "env": "DISABLE_DEV_OVERLAY" + }, + { + "env": "CAPTCHA_SITE_KEY" + }, + { + "env": "SHOULD_REPORT_TRACE" + }, + { + "env": "TRACE_REPORT_ENDPOINT" + }, + { + "env": "R2_ACCOUNT_ID" + }, + { + "env": "R2_ACCESS_KEY_ID" + }, + { + "env": "R2_SECRET_ACCESS_KEY" } ], "options": {