Skip to content

Commit

Permalink
Merge pull request #2 from byCrookie/feature/versioning
Browse files Browse the repository at this point in the history
add nerdbank
  • Loading branch information
byCrookie authored Dec 11, 2023
2 parents 75d233f + 7d0cd21 commit ac7442c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 36 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ permissions:

on:
workflow_dispatch:
push:
tags:
- 'v*'

jobs:

Expand Down Expand Up @@ -55,6 +52,12 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install Nerdbank.GitVersioning
run: install --tool-path . nbgv

- name: Nerdbank.GitVersioning SetVersion
run: nbgv cloud

- name: Restore
run: dotnet restore
Expand Down Expand Up @@ -94,6 +97,12 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Install Nerdbank.GitVersioning
run: install --tool-path . nbgv

- name: Nerdbank.GitVersioning SetVersion
run: nbgv cloud

- name: Restore
run: dotnet restore

Expand Down Expand Up @@ -133,6 +142,12 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Install Nerdbank.GitVersioning
run: install --tool-path . nbgv

- name: Nerdbank.GitVersioning SetVersion
run: nbgv cloud

- name: Restore
run: dotnet restore

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test_linux_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test_osx_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test_win_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand Down
28 changes: 4 additions & 24 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.1.2-alpha",
"assemblyVersion": {
"precision": "revision"
},
"nugetPackageVersion": {
"semVer": 1,
"precision": "build"
},
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.2.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"setVersionVariables": true,
"buildNumber": {
"enabled": true,
"includeCommitId": {
"when": "nonPublicReleaseOnly",
"where": "buildMetadata"
}
}
},
"release" : {
"tagName" : "v{version}",
"branchName" : "v{version}",
"versionIncrement" : "minor",
"firstUnstableTag" : "alpha"
"release": {
"firstUnstableTag": "preview"
}
}

0 comments on commit ac7442c

Please sign in to comment.