Skip to content

Commit

Permalink
Set up auto versioning
Browse files Browse the repository at this point in the history
- Build on .NET 8
  • Loading branch information
NotCoffee418 committed Jul 23, 2024
1 parent 082bce4 commit 385fc5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
include-prerelease: true
dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
include-prerelease: true
dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
4 changes: 3 additions & 1 deletion CSharpScriptOperations/CSharpScriptOperations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Library for streamlining the process of executing custom operations via the console.</Description>
<Authors>Stijn Raeymaekers</Authors>
<Version>1.4.2</Version>
<Build>$([System.DateTime]::op_Subtraction($([System.DateTime]::get_Now().get_Date()),$([System.DateTime]::new(2000,1,1))).get_TotalDays())</Build>
<Revision>$([MSBuild]::Divide($([System.DateTime]::get_Now().get_TimeOfDay().get_TotalMinutes()), 2).ToString('F0'))</Revision>
<Version>1.$(Build).$(Revision)</Version>
<LangVersion>latest</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
Expand Down

0 comments on commit 385fc5e

Please sign in to comment.