Skip to content

1.12.0

1.12.0 #31

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Create Release
on:
release:
types: [published]
jobs:
Publish:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- Assistants
- Assistants.AutoGen
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./src/${{ matrix.package }}/
- name: Build
run: dotnet build --no-restore --configuration Release
working-directory: ./src/${{ matrix.package }}/
- name: Pack
run: dotnet pack --configuration Release /p:Version=${{ github.event.release.tag_name }}
working-directory: ./src/${{ matrix.package }}/
- name: Push to NuGet
run: |
dotnet nuget push **/*.nupkg --source nuget.org --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
working-directory: ./src/${{ matrix.package }}/