Skip to content

v2.2.0

v2.2.0 #24

Workflow file for this run

name: CD
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x.x'
- name: Install dependencies
run: dotnet restore
- 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=${{ steps.get_version.outputs.VERSION }}
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download build artifact
uses: actions/download-artifact@v2
with:
name: dist
path: 'dist'
- name: Publish packages
run: dotnet nuget push ./dist/**.nupkg --source nuget.org --api-key ${{secrets.NUGET_API_KEY}}