Skip to content

test deployment

test deployment #730

Workflow file for this run

name: Portal Bridge [Preview]
on:
pull_request:
# paths:
# - '!apps/token-list/**'
jobs:
branch-sha:
name: Compute Branch Sha
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-preview-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 Preview"
uses: ./.github/workflows/build.yml
with:
name: preview
separator: P
connect-branch: development
advanced-tools-branch: advanced-tools
environment: Cloudflare-Preview
public-url: "/${{ needs.branch-sha.outputs.value }}"
wac-url: "https://wac.gfx.xyz"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: preview.portalbridge.com
secrets: inherit
needs:
- branch-sha
summary:
name: "Summary"
needs:
- build
- branch-sha
runs-on: "ubuntu-latest"
environment: Cloudflare-Preview
concurrency:
group: ${{ github.ref }}-summary-preview
cancel-in-progress: true
steps:
- name: Write Summary
run: |
echo "The preview URL is: ${{ vars.PREVIEW_ROOT_URL }}/${{ needs.branch-sha.outputs.value }}/" - ${{ needs.build.outputs.pkg-version }}>> ${GITHUB_STEP_SUMMARY}