-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (75 loc) · 2.34 KB
/
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
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Release
# Controls when the action will run.
on:
release:
types:
- published
- edited
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 5.0.x
- uses: dotnet/nbgv@master
id: nbgv
- name: Build
run: dotnet build
working-directory: src/SimpleToggle
package-core:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish Core
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/SimpleToggle/SimpleToggle.Core/SimpleToggle.Core.csproj
PACKAGE_NAME: SimpleToggle
VERSION_STATIC: ${{ needs.build.outputs.version }}
TAG_COMMIT: false
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
#INCLUDE_SYMBOLS: true # Action currently fails when including symbols
package-aws-sources:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish AWS Source
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/SimpleToggle/SimpleToggle.Sources.AWS/
PACKAGE_NAME: SimpleToggle.AWS
VERSION_STATIC: ${{ needs.build.outputs.version }}
TAG_COMMIT: false
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
#INCLUDE_SYMBOLS: true
package-azure-sources:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish Azure Source
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/SimpleToggle/SimpleToggle.Sources.Azure/
PACKAGE_NAME: SimpleToggle.Azure
VERSION_STATIC: ${{ needs.build.outputs.version }}
TAG_COMMIT: false
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
#INCLUDE_SYMBOLS: true