From 4fe84ea436804a9f7eeedb00cc62d706d61f22c6 Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Sat, 17 Feb 2024 11:18:46 +0200 Subject: [PATCH] Ensure deterministic build for releases (#1780) --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a4e764e33..018cf19085 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: run: dotnet test --configuration Release --logger GitHubActions - name: Pack with dotnet - run: dotnet pack Jint/Jint.csproj --output artifacts --configuration Release -p:VersionSuffix=preview-$GITHUB_RUN_NUMBER + run: dotnet pack Jint/Jint.csproj --output artifacts --configuration Release -p:VersionSuffix=preview-$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=True - name: Push with dotnet run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/jint/api/v2/package diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78336e6c7d..12f28c7b10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: VERSION="${arrTag[2]}" VERSION="${VERSION//v}" echo "$VERSION" - dotnet pack Jint/Jint.csproj --output artifacts --configuration Release -p:Version=$VERSION + dotnet pack Jint/Jint.csproj --output artifacts --configuration Release -p:Version=$VERSION -p:ContinuousIntegrationBuild=True - name: Push with dotnet run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json