Skip to content

Feat/wormhole connect cutover #434

Feat/wormhole connect cutover

Feat/wormhole connect cutover #434

Workflow file for this run

name: Portal Bridge [Testnet]
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
uses: ./.github/workflows/build-non-prod.yml
with:
name: testnet
separator: T
deploy:
name: "Deploy Testnet"
needs:
- build
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-deploy-testnet
cancel-in-progress: true
permissions:
contents: write
environment: Cloudflare-Testnet
steps:
- name: Checkout testnet branch
uses: actions/checkout@v3
with:
ref: testnet
- name: Setup Git
run: |
git config user.name "xLabs CI"
git config user.email "devops@xlabs.xyz"
- name: Trigger a testnet Deploy
run: |
sleep 30s
mkdir -p testnet/${{ needs.build.outputs.branch-sha }}
pushd testnet/${{ needs.build.outputs.branch-sha }}
[[ ! -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}