From 174da4d035215fe81091581ec2a9b758868740e4 Mon Sep 17 00:00:00 2001 From: 7702244 <56172899+7702244@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:07:15 +0300 Subject: [PATCH 1/2] Edit github release name in workflow --- .github/workflows/dotnet-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index b69cb76..c54199b 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -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 From ce3cf2a6bba2fa0c66d5a4cce90f4c315d6f2ed6 Mon Sep 17 00:00:00 2001 From: 7702244 <56172899+7702244@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:15:03 +0300 Subject: [PATCH 2/2] Fix versioning 3 --- .github/workflows/dotnet-release.yml | 2 +- src/MAOToolkit/MAOToolkit.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index c54199b..8d25e36 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -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 }} diff --git a/src/MAOToolkit/MAOToolkit.csproj b/src/MAOToolkit/MAOToolkit.csproj index 15beeca..f4c1af8 100644 --- a/src/MAOToolkit/MAOToolkit.csproj +++ b/src/MAOToolkit/MAOToolkit.csproj @@ -7,7 +7,7 @@ true $([System.DateTime]::UtcNow.ToString(yyyy.MMdd.hhmm-ss)) - 1.$(BuildNumber) + 2.$(BuildNumber) MAOToolkit icon.png