1.12.0 #31
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
# 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 }}/ | |