Skip to content

Commit

Permalink
Fix versioning 4
Browse files Browse the repository at this point in the history
  • Loading branch information
7702244 committed Jun 24, 2024
1 parent 4fed020 commit 09feadf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:

- name: Get current date version
id: date_version
run: echo "date_version=$(date +'%Y.%m%d.%H%M-build-%S')" >> $GITHUB_OUTPUT
run: echo "date_version=$(date +'%Y.%m%d.%H%M')" >> $GITHUB_OUTPUT

- name: Create the package
run: dotnet pack $SOLUTION --configuration Release --no-restore --no-build --verbosity normal /p:PackageVersion=2.${{ steps.date_version.outputs.date_version }}
Expand Down
2 changes: 1 addition & 1 deletion src/MAOToolkit.Web/MAOToolkit.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<InvariantGlobalization>true</InvariantGlobalization>

<!-- The current Nuget Package Version is configured in the file dotnet-release.yml -->
<BuildNumber>$([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm-ss))</BuildNumber>
<BuildNumber>$([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm))</BuildNumber>
<VersionPrefix>2.$(BuildNumber)</VersionPrefix>

<PackageId>MAOToolkit.Web</PackageId>
Expand Down
3 changes: 2 additions & 1 deletion src/MAOToolkit/MAOToolkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>

<BuildNumber>$([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm-ss))</BuildNumber>
<!-- The current Nuget Package Version is configured in the file dotnet-release.yml -->
<BuildNumber>$([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm))</BuildNumber>
<VersionPrefix>2.$(BuildNumber)</VersionPrefix>

<PackageId>MAOToolkit</PackageId>
Expand Down

0 comments on commit 09feadf

Please sign in to comment.