Skip to content

Commit

Permalink
Use Nerdbank.GitVersioning
Browse files Browse the repository at this point in the history
  • Loading branch information
josetr committed Mar 11, 2022
1 parent c281f57 commit 6fc6375
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 6fc6375

Please sign in to comment.