Browse Source

Use Nerdbank.GitVersioning

295227ce-f4a3-466b-a694-65c571873871
josetr 3 years ago
parent
commit
6fc6375bcd
  1. 15
      .github/workflows/main.yml
  2. 5
      Directory.Build.props
  3. 8
      version.json

15
.github/workflows/main.yml

@ -24,6 +24,16 @@ jobs: @@ -24,6 +24,16 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Install nbgv
if: startsWith(matrix.config.os, 'macos')
run: |
dotnet tool install -g nbgv
- name: Set version
run: nbgv cloud --all-vars
- name: Environment
if: matrix.config.vs
@ -72,6 +82,11 @@ jobs: @@ -72,6 +82,11 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set version
run: nbgv cloud --all-vars
- uses: actions/download-artifact@v2
with:

5
Directory.Build.props

@ -11,7 +11,10 @@ @@ -11,7 +11,10 @@
<RepositoryCommit>$(GITHUB_SHA)</RepositoryCommit>
<Authors>João Matos, Dimitar Dobrev, Jose Torres</Authors>
<Copyright>João Matos, Dimitar Dobrev</Copyright>
<Version>0.10.6</Version>
<Version>$(NBGV_Version)</Version>
<AssemblyVersion>$(NBGV_AssemblyVersion)</AssemblyVersion>
<AssemblyFileVersion>$(NBGV_AssemblyFileVersion)</AssemblyFileVersion>
<AssemblyInformationalVersion>$(NBGV_AssemblyInformationalVersion)</AssemblyInformationalVersion>
<IsPackable>false</IsPackable>
<BuildDir>$(RootDir)build\</BuildDir>
<ObjDir>$(BuildDir)obj\</ObjDir>

8
version.json

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/tags/v\\d\\.\\d"
]
}
Loading…
Cancel
Save