From e2126cadb9c98c14a565d8143e630b7340b85f80 Mon Sep 17 00:00:00 2001 From: Willy <63505597+willysoft@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:30:26 +0800 Subject: [PATCH] fix: Enable deterministic builds in GitHub Actions workflow - Added `/p:ContinuousIntegrationBuild=true` to the `dotnet build` command to ensure deterministic builds. --- .github/workflows/build-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 9a148fe..e19f9d7 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -45,7 +45,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 # build and pack - - run: dotnet build -c Release -p:Version=${{ needs.create-release.outputs.new_release_version }} + - run: dotnet build -c Release /p:ContinuousIntegrationBuild=true -p:Version=${{ needs.create-release.outputs.new_release_version }} - run: dotnet pack -c Release --no-build -p:Version=${{ needs.create-release.outputs.new_release_version }} -o ./publish # Store artifacts. - uses: actions/upload-artifact@v4