Skip to content

Commit

Permalink
[cli] Bump version 1.0 (#125)
Browse files Browse the repository at this point in the history
* Use AssemblyInformationalVersion as extractor version

* Add create release step in release-vpax-cli.yml

* Fix publicReleaseRefSpec regex in version.json

* Bump version 1.0
  • Loading branch information
albertospelta authored Jun 25, 2024
1 parent afff218 commit 7a1209b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-vpax-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ jobs:
path: src/${{ env.PROJECT }}
- name: dotnet pack
run: dotnet pack 'src/${{ env.PROJECT }}/${{ env.PROJECT }}.csproj' -c Release -o .
- shell: bash
name: nuget push
- name: nuget push
run: dotnet nuget push './${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg' -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
- name: create release
run: |
PRERELEASE_FLAG=$([[ "${{ steps.nbgv.outputs.PrereleaseVersion }}" != "" ]] && echo "--prerelease" || echo "")
gh release create ${{ env.RELEASE_TAG }} --title ${{ env.RELEASE_TAG }} --target $GITHUB_SHA --generate-notes --draft $PRERELEASE_FLAG
env:
RELEASE_TAG: ${{ env.PROJECT }}_${{ steps.nbgv.outputs.NuGetPackageVersion }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/Dax.Vpax.CLI/Commands/ExportCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
// TODO: forward cancellation token to vertipaq-analyzer extractor
var cancellationToken = context.GetCancellationToken();
var extractorAppName = ThisAssembly.AssemblyName;
var extractorAppVersion = ThisAssembly.AssemblyFileVersion;
var extractorAppVersion = ThisAssembly.AssemblyInformationalVersion;

var path = context.ParseResult.GetValueForArgument(PathArgument);
var connectionString = context.ParseResult.GetValueForArgument(ConnectionStringArgument);
Expand Down
4 changes: 2 additions & 2 deletions src/Dax.Vpax.CLI/version.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.1-beta",
"version": "1.0",
"nugetPackageVersion": {
"semVer": 2
},
"publicReleaseRefSpec": [
"^refs/heads/master"
"^refs/heads/master$"
],
"pathFilters": [
"./"
Expand Down

0 comments on commit 7a1209b

Please sign in to comment.