We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07710ed commit d034d93Copy full SHA for d034d93
2 files changed
β.github/workflows/cicd.yamlβ β.github/workflows/build.yamlβ.github/workflows/cicd.yaml renamed to .github/workflows/build.yaml
β.github/workflows/release.yamlβ
@@ -0,0 +1,27 @@
1
+name: Publish new release to NuGet
2
+on:
3
+ release:
4
+ types: [published]
5
+
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Git checkout
11
+ uses: actions/checkout@v3
12
13
+ - name: Setup .NET Core SDK
14
+ uses: actions/setup-dotnet@v2
15
+ with:
16
+ dotnet-version: '3.1.x'
17
18
+ - name: .NET build
19
+ run: |
20
+ echo Version is ${{env.VERSION:1}}
21
+ dotnet msbuild -t:restore,build,pack -p:Configuration=Release -p:Version=${{env.VERSION:1}} FINT.Information.Model.sln
22
+ env:
23
+ VERSION: ${{github.event.release.tag_name}}
24
25
+ - name: Publish new release to NuGet
26
27
+ dotnet nuget push FINT.Model.Resource/bin/Release/FINT.Model.Resource.*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json
0 commit comments