Skip to content

SC-85409 | Build and deploy demonstration previews on pull requests #3

SC-85409 | Build and deploy demonstration previews on pull requests

SC-85409 | Build and deploy demonstration previews on pull requests #3

Workflow file for this run

# AC:
# - v2_build_demos workflow runs when a commit is pushed to a pull request
# - Only changed/added demos should be built on a commit
# - Changed demos are deployed as previews
# - PRs targeting the dev branch use development dependencies
# - PRs targeting master use the stable dependencies (constraints.txt)
# We want to create a Workflow that runs on pull requests to the dev branch and master branch
# depending on if the branch is dev or master, we want to use different dependencies
# we want to use the stable dependencies for master and the development dependencies for dev, so we will need to check the branch being targeted and determine which dependencies to use. The workflow "Build V2 Demos" has a bool variable for this
name: Build V2 Demos on Pull Request
on:
pull_request:
branches: [master, dev]
# Runs on pull requests where the target branch is dev or master
concurrency:
group: build-v2-demos-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/v2-build-demos.yml
with:
ref: ${{ github.sha }}
demo-names: 'qrack gbs'
dev: ${{ github.event.pull_request.base.ref == 'dev' }}
save-artifact: true
artifact-name: demo-build-${{ github.sha }}
keep-going: false
quiet: false
batch_size: 10