File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ name: .NET Core
22
33on :
44 push :
5+ tags :
6+ - ' *'
57 branches :
6- - master
78 - develop
89 pull_request :
910 branches : [ develop ]
1819 uses : actions/checkout@v2
1920 with :
2021 fetch-depth : 0
21- - name : Setup .NET Core
22- uses : actions/setup-dotnet@v1
23- with :
24- dotnet-version : ' 3.1.x'
25- - name : Install dependencies
26- run : dotnet restore
27- - name : Build
28- run : dotnet build --configuration Release --no-restore
29- - name : Test
30- run : dotnet test --no-restore --verbosity normal
31- - name : Install GitVersion
32- uses : gittools/actions/gitversion/setup@v0.9.7
33- if : ${{ contains(github.event_name, 'push') }}
34- with :
35- versionSpec : ' 5.x'
36- - name : Determine Version
37- uses : gittools/actions/gitversion/execute@v0.9.7
38- if : ${{ contains(github.event_name, 'push') }}
39- with :
40- useConfigFile : true
41- - name : Display SemVer
42- if : ${{ contains(github.event_name, 'push') }}
43- run : |
44- echo "SemVer: $GITVERSION_SEMVER"
45- - name : Package
46- if : ${{ contains(github.event_name, 'push') }}
47- run : dotnet pack --no-restore --no-build --verbosity normal --output ./Packages -p:PackageVersion=$GITVERSION_SEMVER
48- - name : Push
49- if : ${{ contains(github.event_name, 'push') }}
50- run : |
51- cd Packages
52- ls
53- dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
54- env :
55- NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments