Feat/wormhole connect cutover #434
Workflow file for this run
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
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} |