From dfea2090a99c946a6dcfbdaec732e288bf95dd3c Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 23 Apr 2022 16:39:17 +0200 Subject: [PATCH] Add CI run id to package version on GitHub Actions --- .github/workflows/dotnet.yml | 4 ++++ Directory.Build.props | 4 +++- Directory.Build.targets | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Directory.Build.targets diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0e19890b..ed747d9e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,6 +2,10 @@ name: .NET on: [push, pull_request] +env: + EXCLUDE_RUN_ID_FROM_PACKAGE: false + EXCLUDE_SUFFIX_FROM_VERSION: false + jobs: # Build the whole ComputeSharp solution, in Debug diff --git a/Directory.Build.props b/Directory.Build.props index c507f133..a26733d2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -9,7 +9,9 @@ 2.0.0.0 - 2.0.0 + 2.0.0 + alpha + pr https://github.com/Sergio0694/ComputeSharp/ git true diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 00000000..0418ccd9 --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,16 @@ + + + + + + + $(Version).$(GITHUB_RUN_ID) + + \ No newline at end of file