From d82f89da2f7a82bb302aaedfdb5c676cc7051273 Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Thu, 17 Oct 2024 20:51:33 +0300 Subject: [PATCH] feat: Make builds deterministic and set latest GH actions (#889) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/nuget-push-public.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- src/Directory.Build.props | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8b491b6..6707b257 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: checkout repo - uses: actions/checkout@v3 -# - uses: actions/setup-dotnet@v3 + uses: actions/checkout@v4 +# - uses: actions/setup-dotnet@v4 # with: # dotnet-version: '8.0.x' - name: build diff --git a/.github/workflows/nuget-push-public.yml b/.github/workflows/nuget-push-public.yml index 82f3db39..32cf2542 100644 --- a/.github/workflows/nuget-push-public.yml +++ b/.github/workflows/nuget-push-public.yml @@ -6,9 +6,9 @@ jobs: build-test-prep-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Create the package - run: dotnet test -c Release && dotnet pack --no-build -c Release --output nupkgs + run: dotnet test -c Release -p:ContinuousIntegrationBuild=true && dotnet pack --no-build -c Release --output nupkgs - name: Publish the package to NuGet.org env: NUGET_KEY: ${{secrets.NUGET_KEY}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3722a8ea..75802dbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,14 +6,14 @@ jobs: build-test-prep-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 - name: build and test run: | dotnet restore - dotnet build -c Release --no-restore + dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true dotnet test -c Release --no-build - name: setup semantic-release run: | diff --git a/src/Directory.Build.props b/src/Directory.Build.props index cbaa9e0a..a824193d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -8,6 +8,7 @@ https://www.finbuckle.com/MultiTenant https://github.com/Finbuckle/Finbuckle.MultiTenant true + true true snupkg finbuckle;multitenant;multitenancy;aspnet;aspnetcore;entityframework;entityframework-core;efcore