Skip to content

Commit

Permalink
Fixing version of CD action
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Nov 21, 2021
1 parent c95f485 commit b7a478b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b7a478b

Please sign in to comment.