From 5253b956eff2bf67f42877a6f4742b9af1167082 Mon Sep 17 00:00:00 2001 From: axunonb Date: Thu, 2 Jan 2025 20:51:12 +0100 Subject: [PATCH] Update daily_build.yml --- .github/workflows/daily_build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily_build.yml b/.github/workflows/daily_build.yml index ab91abbf..2fe758d1 100644 --- a/.github/workflows/daily_build.yml +++ b/.github/workflows/daily_build.yml @@ -28,14 +28,19 @@ jobs: Version='5.0.0-daily' echo "VERSION=$Version" >> $GITHUB_ENV echo "Version: $Version" + - name: Get commit hash + run: | + COMMIT_HASH=$(git rev-parse --short HEAD) + echo "COMMIT_HASH=$COMMIT_HASH" >> $GITHUB_ENV + echo "Commit Hash: $COMMIT_HASH" - name: Build Test run: dotnet build --no-restore --configuration Release -p:Nullable=disable -p:nowarn=1591 - name: Test run: dotnet test --no-build --configuration Release --verbosity normal - name: Build and pack daily build run: | - dotnet build --no-restore --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:FileVersion=${{env.VERSION}}.${{github.run_number}} -p:Nullable=disable -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true - dotnet pack --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --no-build -p:PackageVersion=${{env.VERSION}}.${{github.run_number}} + dotnet build --no-restore --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:FileVersion=${{env.VERSION}}.${{github.run_number}} -p:VersionSuffix=${{env.COMMIT_HASH}} -p:Nullable=disable -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true + dotnet pack --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:PackageReleaseNotes="Commit: ${{env.COMMIT_HASH}}" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --no-build -p:PackageVersion=${{env.VERSION}}.${{github.run_number}} - name: Store artifacts uses: actions/upload-artifact@v4 with: