-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (37 loc) · 1.07 KB
/
main.yml
File metadata and controls
41 lines (37 loc) · 1.07 KB
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
name: Main
on:
workflow_dispatch:
push:
branches:
- main
- develop
pull_request:
types: [ opened, synchronize, reopened ]
release:
types: [ published ]
jobs:
unit-tests:
name: Run Unit Tests
uses: ./.github/workflows/unit-tests.yml
secrets: inherit
validation-tests:
name: Run Validation Tests
if: ${{ github.ref_name == 'main' && github.event_name != 'pull_request' }}
uses: ./.github/workflows/validation-tests.yml
secrets: inherit
publish-nuget:
name: Publish Nuget
needs: [ unit-tests ]
if: ${{ github.ref_name == 'main' && github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
uses: ./.github/workflows/publish-svs.yml
secrets: inherit
with:
beta: false
publish-nuget-beta:
name: Publish Nuget Beta
needs: [ unit-tests ]
if: ${{ github.ref_name != 'main' && github.event.pull_request.head.repo.full_name == github.repository }}
uses: ./.github/workflows/publish-svs.yml
secrets: inherit
with:
beta: true