Feat: Portal Logo should take the user back to the new portal bridge page #480
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: | |
branch-sha: | |
name: Compute Branch Sha | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.ref }}-testnet-sha | |
outputs: | |
value: ${{ steps.set-version.outputs._BRANCH_NAME_SHA }} | |
steps: | |
- name: Set Version | |
id: set-version | |
run: echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_OUTPUT}" | |
build: | |
name: "Build Testnet" | |
uses: ./.github/workflows/build.yml | |
with: | |
name: testnet | |
separator: T | |
connect-branch: portal-bridge | |
advanced-tools-branch: advanced-tools | |
environment: Cloudflare-Testnet | |
public-url: "/${{ needs.branch-sha.outputs.value }}" | |
secrets: inherit | |
needs: | |
- branch-sha | |
deploy: | |
name: "Deploy Testnet" | |
needs: | |
- build | |
- branch-sha | |
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.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.branch-sha.outputs.value }}/" >> ${GITHUB_STEP_SUMMARY} |