Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 20, 2023
1 parent dcb23d5 commit 8b866f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion example/src/basic/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions example/src/config/agora.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import * as log from '../utils/log';

let env: any = '';
let localAppId = '';
try {
env = require('./env_local').default;
} 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/
Expand Down

0 comments on commit 8b866f9

Please sign in to comment.