From 46535563abc36fc3dd50afa3b0571b83cfac7924 Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Sat, 19 Oct 2024 22:11:15 +0200 Subject: [PATCH] build: print env Signed-off-by: Andrew Berezovskyi --- .github/workflows/main.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc5cbfb..75429bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,17 +11,17 @@ on: release: types: - published # Run the workflow when a new GitHub release is published - # workflow_dispatch: - # inputs: - # release: - # description: "Make the release build" - # required: false - # type: boolean - # default: false - # version: - # description: "Version string" - # required: true - # type: string + workflow_dispatch: + inputs: + release: + description: "Make the release build" + required: false + type: boolean + default: false + # version: + # description: "Version string" + # required: true + # type: string env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 @@ -111,7 +111,9 @@ jobs: - name: Pack NuGet packages (release) shell: pwsh run: | + Write-Host $env:GITHUB_REF $env:GITHUB_REF -match '^refs/tags/v(.*)$' | Set-Variable VERSION $matches[1] + Write-Host $VERSION dotnet pack -c Release -p:RELEASE_VERSION=$VERSION -o ${{ env.NuGetDirectory }} if: | success()