Skip to content

Commit 70fe6ed

Browse files
committed
Dont run CI build when pusing preview or release tags
1 parent 2ea631b commit 70fe6ed

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: MiddyNet Continuous Integration
22

3-
on: push
3+
on:
4+
push:
5+
tags-ignore:
6+
- preview-* # Don't run the CI build when publishing the preview nugets
7+
- release-* # Don't run the CI build when publishing the release nugets
48

59
jobs:
610
build:

.github/workflows/preview.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
name: MiddyNet Preview Continous Deployment
22
on:
3-
workflow_run:
4-
workflows:
5-
- "MiddyNet Continuous Integration"
3+
push:
64
branches:
75
- main
8-
types:
9-
- completed
106
tags:
117
- preview-*
128

139
jobs:
1410
build:
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16-
1711
env:
1812
BUILD_CONFIG: Release
1913
VERSION_SUFFIX: -rc1.${{ github.run_number }}

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: MiddyNet Release Continous Deployment
22
on:
3-
workflow_run:
4-
workflows:
5-
- "MiddyNet Continuous Integration"
3+
push:
64
branches:
75
- main
8-
types:
9-
- completed
106
tags:
117
- release-*
128

0 commit comments

Comments
 (0)