From b7a478b02535fce2a76cabbc83691eca57a4dd9f Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Sun, 21 Nov 2021 15:48:19 -0600 Subject: [PATCH] Fixing version of CD action --- .github/workflows/CD.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 865a9ca8..f0942745 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -15,11 +15,12 @@ jobs: dotnet-version: '6.x.x' - name: Install dependencies run: dotnet restore - - name: Determine version - run: echo "::set-env name=VERSION::$(git describe --tags --dirty)" + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Build run: | - dotnet pack Deepgram.sln --configuration Release --no-restore --output ./dist -p:Version=$VERSION + dotnet pack Deepgram.sln --configuration Release --no-restore --output ./dist -p:Version=${{ steps.get_version.outputs.VERSION }} - name: Archive build artifacts uses: actions/upload-artifact@v2 with: