Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix branch-sha and enable cctp warnign #538

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
name: "Deploy Preview"
needs:
- build
- branch-sha
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-deploy-preview
Expand All @@ -52,13 +53,13 @@ jobs:
- name: Trigger a preview Deploy
run: |
sleep 30s
mkdir -p preview/${{ needs.build.outputs.branch-sha }}
pushd preview/${{ needs.build.outputs.branch-sha }}
mkdir -p preview/${{ needs.branch-sha.outputs.value }}
pushd preview/${{ needs.branch-sha.outputs.value }}
[[ ! -f .latest ]] && touch .latest
[[ ! -f .artifacts ]] && touch .artifacts
cat .latest >> .artifacts
echo ${{ needs.build.outputs.pkg-version }} > .latest
git add .artifacts .latest
git commit -m"Update preview artifacts ${{ needs.build.outputs.pkg-version }}"
git push
echo "The preview URL is: ${{ vars.PREVIEW_ROOT_URL }}/${{ needs.build.outputs.branch-sha }}/" >> ${GITHUB_STEP_SUMMARY}
echo "The preview URL is: ${{ vars.PREVIEW_ROOT_URL }}/${{ needs.branch-sha.outputs.value }}/" >> ${GITHUB_STEP_SUMMARY}
7 changes: 4 additions & 3 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
name: "Deploy Testnet"
needs:
- build
- branch-sha
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-deploy-testnet
Expand All @@ -52,13 +53,13 @@ jobs:
- name: Trigger a testnet Deploy
run: |
sleep 30s
mkdir -p testnet/${{ needs.build.outputs.branch-sha }}
pushd testnet/${{ needs.build.outputs.branch-sha }}
mkdir -p testnet/${{ needs.branch-sha.outputs.value }}
pushd testnet/${{ needs.branch-sha.outputs.value }}
[[ ! -f .latest ]] && touch .latest
[[ ! -f .artifacts ]] && touch .artifacts
cat .latest >> .artifacts
echo ${{ needs.build.outputs.pkg-version }} > .latest
git add .artifacts .latest
git commit -m"Update testnet artifacts ${{ needs.build.outputs.pkg-version }}"
git push
echo "The testnet URL is: ${{ vars.TESTNET_ROOT_URL }}/${{ needs.build.outputs.branch-sha }}/" >> ${GITHUB_STEP_SUMMARY}
echo "The testnet URL is: ${{ vars.TESTNET_ROOT_URL }}/${{ needs.branch-sha.outputs.value }}/" >> ${GITHUB_STEP_SUMMARY}
7 changes: 5 additions & 2 deletions apps/connect/vite.token-bridge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ const PUBLIC_URL = viteConfig.base;

const ADVANCE_TOOLS_HREF = `${PUBLIC_URL}/advanced-tools/#/transfer`
const ADVANCE_TOOLS_HREF_TEMPLATE = `${ADVANCE_TOOLS_HREF}?sourceChain={:sourceChain}&targetChain={:targetChain}`

const USDC_BRIDGE_HREF = `${PUBLIC_URL}/usdc-bridge/`
// https://vitejs.dev/config/
export default defineConfig({
...viteConfig,
define: {
navBar: [
{ label: "Home", active: true, href: `${PUBLIC_URL}/` },
{ label: "USDC", href: `${PUBLIC_URL}/usdc-bridge` }
{ label: "USDC", href: USDC_BRIDGE_HREF }
],
wormholeConnectConfig: {
...viteConfig?.define?.wormholeConnectConfig,
cctpWarning: {
href: USDC_BRIDGE_HREF
},
moreNetworks: {
href: ADVANCE_TOOLS_HREF_TEMPLATE,
target: "_blank",
Expand Down
Loading