-
Notifications
You must be signed in to change notification settings - Fork 16
73 lines (62 loc) · 1.93 KB
/
build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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 }}