fix(core): nx cache configuration (#5065)
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -9,7 +9,6 @@ on:
|
|||||||
default: canary
|
default: canary
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: canary
|
|
||||||
APP_NAME: affine
|
APP_NAME: affine
|
||||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
|
|
||||||
@@ -17,7 +16,6 @@ jobs:
|
|||||||
build-server:
|
build-server:
|
||||||
name: Build Server
|
name: Build Server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: ${{ github.event.inputs.flavor }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
@@ -48,7 +46,7 @@ jobs:
|
|||||||
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
||||||
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
||||||
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
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
|
SHOULD_REPORT_TRACE: true
|
||||||
TRACE_REPORT_ENDPOINT: ${{ secrets.TRACE_REPORT_ENDPOINT }}
|
TRACE_REPORT_ENDPOINT: ${{ secrets.TRACE_REPORT_ENDPOINT }}
|
||||||
CAPTCHA_SITE_KEY: ${{ secrets.CAPTCHA_SITE_KEY }}
|
CAPTCHA_SITE_KEY: ${{ secrets.CAPTCHA_SITE_KEY }}
|
||||||
@@ -205,7 +203,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Deploy to dev
|
- name: Deploy to ${{ github.event.inputs.flavor }}
|
||||||
uses: ./.github/actions/deploy
|
uses: ./.github/actions/deploy
|
||||||
with:
|
with:
|
||||||
build-type: ${{ github.event.inputs.flavor }}
|
build-type: ${{ github.event.inputs.flavor }}
|
||||||
|
|||||||
@@ -25,6 +25,9 @@
|
|||||||
{
|
{
|
||||||
"env": "BUILD_TYPE"
|
"env": "BUILD_TYPE"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"env": "BUILD_TYPE_OVERRIDE"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"env": "PERFSEE_TOKEN"
|
"env": "PERFSEE_TOKEN"
|
||||||
},
|
},
|
||||||
@@ -48,6 +51,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"env": "DISABLE_DEV_OVERLAY"
|
"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": {
|
"options": {
|
||||||
|
|||||||
Reference in New Issue
Block a user