Skip to content

Manual deploy fusion app TEST🚀 #350

Manual deploy fusion app TEST🚀

Manual deploy fusion app TEST🚀 #350

Workflow file for this run

name: Manual deploy fusion app TEST🚀
on:
workflow_dispatch:
inputs:
category:
type: choice
description: Which app to deploy to test
options:
- handover
- mechanical-completion
- swcr
- electrical-consumers
- heat-trace
- loop
- pipetest
- punch
- scopechangerequest
- workorder
- project-portal-landingpage
- "*"
permissions:
actions: read
checks: write
contents: read
deployments: write
id-token: write
statuses: write
jobs:
deploy-manual-ci:
runs-on: ubuntu-latest
environment: ci
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to fetch range
- name: Get fusion token
id: "get-fusion-token"
uses: ./.github/actions/get-fusion-token
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
resource-id: ${{secrets.AZURE_RESOURCE_ID}}
- name: PNPM setup
uses: ./.github/actions/pnpm-setup
- name: Build monorepo
run: npx turbo run build --filter='${{inputs.category}}'
- name: Start summary
run: |
echo '# CI deployment summary' >> $GITHUB_STEP_SUMMARY
- name: "Deploy affected apps to Fusion CI env"
shell: bash
env:
#Public hosted runners has 16GB available (linux | windows runners)
NODE_OPTIONS: "--max_old_space_size=12288"
run: npx turbo run pr:deploy --filter='${{inputs.category}}' --concurrency 4 -- --token ${{ steps.get-fusion-token.outputs.token }} --ai '${{secrets.ai}}' --modelViewerConfig '${{vars.modelViewerConfig}}' --sha '${{github.sha}}'