From 8b866f9979117504b89186b401dd73bb66c0617a Mon Sep 17 00:00:00 2001 From: gxz Date: Mon, 20 Nov 2023 17:18:37 +0800 Subject: [PATCH] ci: fix --- .github/workflows/build.yml | 2 +- example/src/basic/Login/index.tsx | 1 - example/src/config/agora.config.ts | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0912c7..db0d69d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: - name: Modify APP ID run: | - sed "s/localAppId = '\(.*\)'/localAppId = '33'/g" agora.config.ts > tmp + sed "s/localAppId = '\(.*\)'/localAppId = '${{ secrets.APP_ID }}'/g" agora.config.ts > tmp mv tmp agora.config.ts working-directory: example/src/config diff --git a/example/src/basic/Login/index.tsx b/example/src/basic/Login/index.tsx index fb94c42..f917024 100644 --- a/example/src/basic/Login/index.tsx +++ b/example/src/basic/Login/index.tsx @@ -18,7 +18,6 @@ import { import Config from '../../config/agora.config'; import { useRtmClient } from '../../hooks/useRtmClient'; import * as log from '../../utils/log'; -log.alert(JSON.stringify(Config)); export default function Login() { const [uid, setUid] = useState(Config.uid); diff --git a/example/src/config/agora.config.ts b/example/src/config/agora.config.ts index 9bc1ef2..d79769b 100644 --- a/example/src/config/agora.config.ts +++ b/example/src/config/agora.config.ts @@ -1,5 +1,3 @@ -import * as log from '../utils/log'; - let env: any = ''; let localAppId = ''; try { @@ -7,8 +5,6 @@ try { } catch (error) { console.warn(error); } -log.alert(JSON.stringify(env)); -log.alert(localAppId); const config = { // Get your own App ID at https://dashboard.agora.io/