Skip to content

Commit efc299e

Browse files
committed
(build) Added release flow in GActions to trigger regular build on new GH release
1 parent d6b55a3 commit efc299e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
branches:
1212
- master
1313

14+
repository_dispatch:
15+
types: [release]
16+
1417
env:
1518
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
1619
ENABLED_MULTI_STAGE_BUILD: true

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
callBuildFlow:
8+
name: Call Build flow
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Call Build flow
13+
uses: peter-evans/repository-dispatch@v1
14+
with:
15+
event-type: release
16+
token: ${{ secrets.REPO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)