Skip to content

Feat/wormhole connect cutover #453

Feat/wormhole connect cutover

Feat/wormhole connect cutover #453

Workflow file for this run

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