Skip to content

detect cancelled job in E2E trigger job #28

detect cancelled job in E2E trigger job

detect cancelled job in E2E trigger job #28

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
name: Build and Deploy Storybook to Cloudflare Pages
on:
push:
branches:
- master
- develop
- release-v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: 'opencrvs/opencrvs-core'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install
# @TODO: when Yarn 2 is available
# run: yarn workspaces focus --production @opencrvs/components
- name: Build components
run: cd packages/components && yarn build
- name: Build Storybook
run: cd packages/components && yarn build-storybook
- name: Deploy
run: npx wrangler pages deploy ./packages/components/build --project-name opencrvs --branch ${{ github.ref_name }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}