Skip to content

Commit 525ba9d

Browse files
committed
Use nbgv
1 parent 7678029 commit 525ba9d

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

.github/workflows/dotnet-core-desktop.yml renamed to .github/workflows/retrobar.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28-
# Install the .NET Core workload
29-
- name: Install .NET Core
30-
uses: actions/setup-dotnet@v1
31-
with:
32-
dotnet-version: 3.1.101
28+
- name: Install nbgv
29+
uses: dotnet/nbgv@v0.4.0
3330

3431
- name: Publish app
3532
run: dotnet publish -p:PublishProfile=$env:Profile
@@ -41,10 +38,3 @@ jobs:
4138
with:
4239
name: RetroBar
4340
path: RetroBar\bin\Release\netcoreapp3.1\publish\RetroBar.exe
44-
45-
- name: Bump versions
46-
uses: SiqiLu/dotnet-bump-version@master
47-
if: github.event_name == 'push'
48-
with:
49-
version_files: "**/*.csproj"
50-
github_token: ${{ secrets.GITHUB_TOKEN }}

Directory.Build.props

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<PackageReference Include="Nerdbank.GitVersioning">
5+
<Version>3.3.37</Version>
6+
<PrivateAssets>all</PrivateAssets>
7+
</PackageReference>
8+
</ItemGroup>
9+
</Project>

RetroBar/RetroBar.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</ItemGroup>
5454

5555
<ItemGroup>
56-
<PackageReference Include="ManagedShell" Version="0.0.7" />
56+
<PackageReference Include="ManagedShell" Version="0.0.15" />
5757
</ItemGroup>
5858

5959
<ItemGroup>

version.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0",
4+
"assemblyVersion": {
5+
"precision": "revision"
6+
},
7+
"publicReleaseRefSpec": [
8+
"^refs/heads/master$",
9+
"^refs/heads/v\\d+(?:\\.\\d+)?$"
10+
],
11+
"cloudBuild": {
12+
"buildNumber": {
13+
"enabled": true
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)