Commit 7a1209b 1 parent afff218 commit 7a1209b Copy full SHA for 7a1209b
File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 19
19
path : src/${{ env.PROJECT }}
20
20
- name : dotnet pack
21
21
run : dotnet pack 'src/${{ env.PROJECT }}/${{ env.PROJECT }}.csproj' -c Release -o .
22
- - shell : bash
23
- name : nuget push
22
+ - name : nuget push
24
23
run : dotnet nuget push './${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg' -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json
25
24
env :
26
- NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
25
+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
26
+ - name : create release
27
+ run : |
28
+ PRERELEASE_FLAG=$([[ "${{ steps.nbgv.outputs.PrereleaseVersion }}" != "" ]] && echo "--prerelease" || echo "")
29
+ gh release create ${{ env.RELEASE_TAG }} --title ${{ env.RELEASE_TAG }} --target $GITHUB_SHA --generate-notes --draft $PRERELEASE_FLAG
30
+ env :
31
+ RELEASE_TAG : ${{ env.PROJECT }}_${{ steps.nbgv.outputs.NuGetPackageVersion }}
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
16
16
// TODO: forward cancellation token to vertipaq-analyzer extractor
17
17
var cancellationToken = context . GetCancellationToken ( ) ;
18
18
var extractorAppName = ThisAssembly . AssemblyName ;
19
- var extractorAppVersion = ThisAssembly . AssemblyFileVersion ;
19
+ var extractorAppVersion = ThisAssembly . AssemblyInformationalVersion ;
20
20
21
21
var path = context . ParseResult . GetValueForArgument ( PathArgument ) ;
22
22
var connectionString = context . ParseResult . GetValueForArgument ( ConnectionStringArgument ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3
- "version" : " 0.1-beta " ,
3
+ "version" : " 1.0 " ,
4
4
"nugetPackageVersion" : {
5
5
"semVer" : 2
6
6
},
7
7
"publicReleaseRefSpec" : [
8
- " ^refs/heads/master"
8
+ " ^refs/heads/master$ "
9
9
],
10
10
"pathFilters" : [
11
11
" ./"
You can’t perform that action at this time.
0 commit comments