Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix versioning 3 #30

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .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-%S')" >> $GITHUB_OUTPUT
run: echo "date_version=$(date +'%Y.%m%d.%H%M-build-%S')" >> $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 All @@ -98,7 +98,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.date.outputs.date }}
name: Release ${{ github.ref }} v${{ steps.date.outputs.date }}
name: Release ${{ github.ref_name }} v${{ steps.date.outputs.date }}
body: ${{ steps.outputs.changelog }}

- name: Publish the package to GitHub Feed
Expand Down
2 changes: 1 addition & 1 deletion src/MAOToolkit/MAOToolkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<InvariantGlobalization>true</InvariantGlobalization>

<BuildNumber>$([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm-ss))</BuildNumber>
<VersionPrefix>1.$(BuildNumber)</VersionPrefix>
<VersionPrefix>2.$(BuildNumber)</VersionPrefix>

<PackageId>MAOToolkit</PackageId>
<PackageIcon>icon.png</PackageIcon>
Expand Down
Loading