Skip to content

Commit

Permalink
update cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
sin-bufan committed Dec 26, 2023
1 parent 971eb5e commit 7eb0329
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/scan-firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
REACT_APP_S3_CONSOLE_URL: '${{ vars.REACT_APP_S3_CONSOLE_URL }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
REACT_APP_S3_CONSOLE_URL: '${{ vars.REACT_APP_S3_CONSOLE_URL }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scan-firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
REACT_APP_S3_CONSOLE_URL: '${{ vars.REACT_APP_S3_CONSOLE_URL }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
REACT_APP_S3_CONSOLE_URL: '${{ vars.REACT_APP_S3_CONSOLE_URL }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
3 changes: 2 additions & 1 deletion packages/client/scan/src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import GitHubButton from 'react-github-btn'
import Logo from './Logo'
import { useCeramicCtx } from '../context/CeramicCtx'
import LoginButton from './LoginButton'
import { S3_CONSOLE_URL } from '../constants'

export default function Nav() {
let location = useLocation()
Expand Down Expand Up @@ -60,7 +61,7 @@ export default function Nav() {
</div>
</div>
</Link>
<a target='_blank' href={`https://console.s3.xyz`} rel="noreferrer">
<a target='_blank' href={S3_CONSOLE_URL} rel="noreferrer">
<div className={`nav-item`}>
<ConsoleIcon />
<div className="tint-c">
Expand Down
2 changes: 2 additions & 0 deletions packages/client/scan/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ export const WALLET_CONNECT_PROJECT_ID =
'c652d0148879353d7e965d7f6f361e59'

export const ADMIN_ADDRESS = process.env.REACT_APP_ADMIN_ADDRESS

export const S3_CONSOLE_URL = process.env.REACT_APP_S3_CONSOLE_URL

0 comments on commit 7eb0329

Please sign in to comment.