fix(core): nx cache configuration (#5065)

This commit is contained in:
LongYinan 2023-11-28 06:59:48 +00:00
parent e73c39fe6b
commit aaaed5ac14
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
2 changed files with 23 additions and 4 deletions

View File

@ -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 }}

View File

@ -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": {