From cfc6f97d0f06ba1dd7feaeb13db205fc724cf632 Mon Sep 17 00:00:00 2001 From: Zandario Date: Mon, 6 Nov 2023 06:54:13 -0600 Subject: [PATCH] Refactor: VERSION uses built-in env var setting --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 677d229..68162ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,12 +8,12 @@ jobs: publish: # 2019, has our .NET needs, latest does not runs-on: windows-2019 + env: + VERSION: ${{ github.event.release.tag_name }} steps: - uses: actions/checkout@v4 - name: Get version - run: | - echo "VERSION=${{ github.event.release.tag_name }}" >> $env:GITHUB_ENV - echo "Building with ${{ env.VERSION }}" + run: echo "Building with ${{ env.VERSION }}" - name: Setup .NET 7 uses: actions/setup-dotnet@v3 with: @@ -25,4 +25,4 @@ jobs: - name: Pack run: dotnet pack Elements.Quantity --output nupkgs --configuration Release -p:Version=${{ env.VERSION }} - name: Nuget Publish - run: dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json