-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include connect v1 with cosmos option (#1111)
- Loading branch information
1 parent
cb6c3e0
commit 59f9b85
Showing
8 changed files
with
69 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,6 @@ on: | |
required: true | ||
separator: | ||
type: string | ||
# connect-branch: | ||
# type: string | ||
# required: true | ||
# default: development | ||
advanced-tools-branch: | ||
type: string | ||
required: true | ||
|
@@ -186,22 +182,6 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: v18.17.1 | ||
# - name: Checkout Wormhole Connect | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: wormhole-foundation/wormhole-connect | ||
# ref: ${{inputs.connect-branch}} | ||
# path: wormhole-connect | ||
# - name: Build Wormhole Connect | ||
# id: wormhole-connect | ||
# run: | | ||
# npm install -g husky | ||
# pushd wormhole-connect | ||
# npm ci --workspaces --if-present | ||
# sed -i -e 's|vite build",|vite build --base=${{inputs.public-url}}/assets/wormhole-connect/",|g' wormhole-connect/package.json | ||
# npm run build | ||
# echo "_JS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.js | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
# echo "_CSS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.css | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
- name: Checkout Custom Wormhole Connect Loader | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -252,22 +232,6 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: v18.17.1 | ||
# - name: Checkout Wormhole Connect | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: wormhole-foundation/wormhole-connect | ||
# ref: ${{inputs.connect-branch}} | ||
# path: wormhole-connect | ||
# - name: Build Wormhole Connect | ||
# id: wormhole-connect | ||
# run: | | ||
# npm install -g husky | ||
# pushd wormhole-connect | ||
# npm ci --workspaces --if-present | ||
# sed -i -e 's|vite build",|vite build --base=${{inputs.public-url}}/assets/wormhole-connect/",|g' wormhole-connect/package.json | ||
# npm run build | ||
# echo "_JS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.js | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
# echo "_CSS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.css | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
- name: Checkout Custom Wormhole Connect Loader | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -317,22 +281,6 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: v18.17.1 | ||
# - name: Checkout Wormhole Connect | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: wormhole-foundation/wormhole-connect | ||
# ref: ${{inputs.connect-branch}} | ||
# path: wormhole-connect | ||
# - name: Build Wormhole Connect | ||
# id: wormhole-connect | ||
# run: | | ||
# npm install -g husky | ||
# pushd wormhole-connect | ||
# npm ci --workspaces --if-present | ||
# sed -i -e 's|vite build",|vite build --base=${{inputs.public-url}}/assets/wormhole-connect/",|g' wormhole-connect/package.json | ||
# npm run build | ||
# echo "_JS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.js | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
# echo "_CSS_SHA_384=$(shasum -b -a 384 wormhole-connect/dist/main.css | awk '{ print $1 }' | xxd -r -p | base64)" >> "${GITHUB_OUTPUT}" | ||
- name: Checkout Custom Wormhole Connect Loader | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -368,13 +316,63 @@ jobs: | |
name: build-tbtc-bridge-v1 | ||
path: connect-loader/apps/connect-v1/dist | ||
|
||
token-bridge-v1: | ||
name: "Token Bridge v1" | ||
runs-on: "ubuntu-latest" | ||
concurrency: | ||
group: ${{ github.ref }}-${{inputs.name}}-token-bridge-v1 | ||
cancel-in-progress: true | ||
environment: ${{inputs.environment}} | ||
outputs: | ||
pkg-version: ${{ steps.set-version.outputs._PKG_VERSION }} | ||
steps: | ||
- name: Set up Node environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: v18.17.1 | ||
- name: Checkout Custom Wormhole Connect Loader | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.project-branch }} | ||
path: connect-loader | ||
- name: Setup Git | ||
run: | | ||
pushd connect-loader | ||
git config user.name "xLabs CI" | ||
git config user.email "[email protected]" | ||
- name: Set Portal Bridge Version | ||
id: set-version | ||
run: | | ||
pushd connect-loader/apps/connect-v1 | ||
echo "_PKG_VERSION=$(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo ${{ github.sha }} | cut -c -10)" >> "${GITHUB_OUTPUT}" | ||
- name: Build Custom Wormhole Connect Loader | ||
env: | ||
PUBLIC_URL: "${{ inputs.public-url }}" | ||
VITE_PUBLIC_URL: ${{ inputs.public-url }} | ||
VITE_APP_VERSION: ${{ steps.set-version.outputs._PKG_VERSION }} | ||
VITE_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }} | ||
# VITE_APP_JS_WC_INTEGRITY_SHA_384: ${{ steps.wormhole-connect.outputs._JS_SHA_384 }} | ||
# VITE_APP_CSS_WC_INTEGRITY_SHA_384: ${{ steps.wormhole-connect.outputs._CSS_SHA_384 }} | ||
VITE_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }} | ||
run: | | ||
pushd connect-loader/apps/connect-v1 | ||
npm ci | ||
echo 'VITE_APP_VERSION=$npm_package_version' > .env | ||
npm run build:token-bridge | ||
- name: Upload Portal Bridge Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-token-bridge-v1 | ||
path: connect-loader/apps/connect-v1/dist | ||
|
||
publish: | ||
name: "Publish" | ||
needs: | ||
- advanced-tools | ||
- usdc-bridge | ||
- token-bridge | ||
- tbtc-bridge-v1 | ||
- token-bridge-v1 | ||
- rewards-dashboard | ||
- redirects | ||
- docs | ||
|
@@ -395,6 +393,11 @@ jobs: | |
with: | ||
name: build-tbtc-bridge-v1 | ||
path: tbtc-bridge | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build-token-bridge-v1 | ||
path: cosmos | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters