There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: update nx cloud read only token (#2821)
DarkSkycd7892b7ed28
diff --git a/.github/actions/build-rust/action.yml b/.github/actions/build-rust/action.ymlindex f824c02af0..4cede74aad 100644--- a/.github/actions/build-rust/action.yml+++ b/.github/actions/build-rust/action.yml@@ -4,6 +4,9 @@ inputs:target:description: 'Cargo target'required: true+ nx_token:+ description: 'Nx Cloud access token'+ required: falseruns:using: 'composite'@@ -29,13 +32,15 @@ runs:if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }}shell: bashrun: yarn nx build @affine/native --target ${{ inputs.target }}+ env:+ NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}- name: Buildif: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}uses: addnab/docker-run-action@v3with:image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian- options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build+ options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}run: >-export CC=x86_64-unknown-linux-gnu-gcc &&export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc &&@@ -47,6 +52,6 @@ runs:uses: addnab/docker-run-action@v3with:image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64- options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build+ options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}run: >-yarn nx build @affine/native --target ${{ inputs.target }}diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 0d9c20d1f1..8d665c8d3a 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -57,6 +57,8 @@ jobs:- name: Setup Node.jsuses: ./.github/actions/setup-node- run: yarn nx build @affine/storybook+ env:+ NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}- name: Upload storybook artifactuses: actions/upload-artifact@v3with:@@ -107,6 +109,7 @@ jobs:ENABLE_ALL_PAGE_FILTER: trueENABLE_LEGACY_PROVIDER: falseENABLE_PRELOADING: false+ NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}- name: Export static resourcesrun: yarn workspace @affine/web export@@ -305,6 +308,7 @@ jobs:uses: ./.github/actions/build-rustwith:target: ${{ matrix.spec.target }}+ nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}- name: Run unit testsif: ${{ matrix.spec.test }}shell: bashdiff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.ymlindex e8f4cb9ea6..ae4963210a 100644--- a/.github/workflows/nightly-build.yml+++ b/.github/workflows/nightly-build.yml@@ -117,6 +117,7 @@ jobs:uses: ./.github/actions/build-rustwith:target: ${{ matrix.spec.target }}+ nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}- name: Replace Versionrun: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}- uses: actions/download-artifact@v3diff --git a/.github/workflows/release-desktop-app.yml b/.github/workflows/release-desktop-app.ymlindex 3e69829785..303e332c8d 100644--- a/.github/workflows/release-desktop-app.yml+++ b/.github/workflows/release-desktop-app.yml@@ -111,6 +111,7 @@ jobs:uses: ./.github/actions/build-rustwith:target: ${{ matrix.spec.target }}+ nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}- uses: actions/download-artifact@v3with:name: before-make-web-staticdiff --git a/nx.json b/nx.jsonindex adbc4b1b64..aef467f816 100644--- a/nx.json+++ b/nx.json@@ -6,7 +6,7 @@"runner": "nx-cloud","options": {"cacheableOperations": ["build", "test"],- "accessToken": "MjNlN2ViZmMtNDM4NS00MDViLWE0NjUtNGFhNmIyMTc1ZDVhfHJlYWQtd3JpdGU="+ "accessToken": "YmQ2NTg1ODktZTk5Mi00YzhiLTk2ZmUtNWQzMDg0NDBkOWM3fHJlYWQtb25seQ=="}}},