AdobeSign Integration #1652
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: Build and Deploy | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
inputs: | |
pr_branch: | |
description: 'Checkout this branch from the LEVANTE repository and execute CI/CD tests on it.' | |
required: true | |
concurrency: | |
group: ci-preview-tests-${{ github.ref }}-1 | |
cancel-in-progress: true | |
jobs: | |
build-and-preview: | |
name: Deploy Preview | |
runs-on: ubuntu-latest | |
steps: | |
# For workflows triggered by pull requests | |
- name: Checkout PR code | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
# For workflows triggered manually, targeting the LEVANTE dashboard repository specifically | |
- name: Checkout manual trigger code | |
if: github.event_name == 'workflow_dispatch' | |
uses: actions/checkout@v4 | |
with: | |
repository: levante-framework/levante-dashboard | |
ref: ${{ github.event.inputs.pr_branch }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Install dependencies and build | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy to Firebase Hosting Channel | |
id: firebase-deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GSE_ROAR_ADMIN }}' | |
projectId: gse-roar-admin | |
target: staging | |
- run: echo ${{ fromJson(steps.firebase-deploy.outputs.urls)[0] }} | |
outputs: | |
deployUrl: ${{ fromJson(steps.firebase-deploy.outputs.urls)[0] }} |