Skip to content

Workflow file for this run

name: Build release (main)
on:
push:
branches:
- main
- feat/ai
paths:
- 'SharePointFramework/**'
- 'Install/**'
- 'Templates/**'
- .github/workflows/build-release.yml
jobs:
build-release:
name: Build release (CI)
runs-on: macos-latest
if: ${{ !contains(github.event.head_commit.message, '[skip-main-ci]') }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set sha_short
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Run Install/Build-Release.ps1 in CI mode
run: Install/Build-Release.ps1 -CI
shell: pwsh
- uses: actions/upload-artifact@v3
with:
name: release-package
path: release
outputs:
sha_short: ${{ steps.vars.outputs.sha_short }}
build_release_package_test:
needs: [build-release]
name: Build test channel release (CI)
runs-on: macos-latest
concurrency:
group: ${{ github.ref }}_build_test_channel_release_ci
cancel-in-progress: true
if: ${{ always() || !contains(github.event.head_commit.message, '[skip-test-ci]') }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set sha_short
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Run Install/Build-Release.ps1 in CI mode for channel test
run: Install/Build-Release.ps1 -CI -Channel test
shell: pwsh
- uses: actions/upload-artifact@v3
with:
name: release-package-test
path: release
outputs:
sha_short: ${{ steps.vars.outputs.sha_short }}