-
-
Notifications
You must be signed in to change notification settings - Fork 99
51 lines (50 loc) · 1.52 KB
/
publish_nuget.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
name: Publish Nuget
on:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
name: test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
7.0.304
6.0.300
- run: >
dotnet test Src/CSharpier.Tests/CSharpier.Tests.csproj
--configuration Release
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--
RunConfiguration.CollectSourceInformation=true
publish-nuget:
runs-on: ubuntu-latest
name: publish nuget
needs: test
env:
VERSION_FILE_PATH: Nuget/Build.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
7.0.304
6.0.300
- name: Publish CSharpier.Core library on version change
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: Src/CSharpier/CSharpier.csproj
TAG_FORMAT: "*"
- name: Publish CSharpie dotnet tool on version change
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: Src/CSharpier.Cli/CSharpier.Cli.csproj
TAG_FORMAT: "*"
- name: Publish CSharpier.MsBuild library on version change
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: Src/CSharpier.MsBuild/CSharpier.MsBuild.csproj
TAG_FORMAT: "*"