-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (60 loc) · 1.42 KB
/
BuildTestDeploy.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
name: BuildTestDeploy
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- 'main'
paths-ignore:
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- 'LICENSE.txt'
- 'README.md'
pull_request:
branches:
- 'main'
paths-ignore:
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- 'LICENSE.txt'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
call-build-test:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: true
uses: Vectron/GithubWorkflows/.github/workflows/BuildAndTest.yml@main
with:
os: ${{ matrix.os }}
dotnet_version: |
6.0.x
7.0.x
8.0.x
solution_file: PlcInterface.sln
call-deploy:
needs: call-build-test
permissions:
packages: write
uses: Vectron/GithubWorkflows/.github/workflows/DeployNugetGithub.yml@main
with:
os: ubuntu-latest
dotnet_version: |
6.0.x
7.0.x
8.0.x
solution_file: PlcInterface.sln
secrets:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
call-release:
needs: call-build-test
permissions:
deployments: write
contents: write
uses: Vectron/GithubWorkflows/.github/workflows/CreateRelease.yml@main