v1.1.2 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
env: | |
CI: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_NOLOGO: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and pack | |
steps: | |
- run: | | |
echo "Name: ${{ github.event.release.name }} Description: ${{ github.event.release.body }}" | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
dotnet-quality: ga | |
- name: Restore packages | |
run: dotnet restore | |
working-directory: src/AssemblyAI.SemanticKernel/ | |
- name: Build project | |
run: dotnet build --no-restore --configuration Release | |
working-directory: src/AssemblyAI.SemanticKernel/ | |
- name: Pack project | |
run: dotnet pack -c Release -o ./package | |
working-directory: src/AssemblyAI.SemanticKernel/ | |
- name: Push project to NuGet | |
run: | | |
dotnet nuget push AssemblyAI.SemanticKernel.*.nupkg \ | |
--api-key ${{ secrets.NUGET_API_KEY }} \ | |
--source https://api.nuget.org/v3/index.json | |
working-directory: src/AssemblyAI.SemanticKernel/package |