bump version #55
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: MsccGenerativeAI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
dotnet-version: ['8.x'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
source-url: https://nuget.pkg.github.com/mscraftsman/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Build | |
run: | | |
dotnet build ./GenerativeAI.sln -c Release | |
# - name: Test Mscc.GenerativeAI | |
# run: | | |
# dotnet test ./tests/Mscc.GenerativeAI/Test.Mscc.GenerativeAI.csproj -c Release --logger "console;verbosity=detailed" | |
# - name: Test Mscc.GenerativeAI.Google | |
# run: | | |
# dotnet test ./tests/Mscc.GenerativeAI.Google/Test.Mscc.GenerativeAI.Google.csproj -c Release --logger "console;verbosity=detailed" | |
- name: Pack for .NET | |
run: | | |
dotnet pack -c Release ./src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj -o output/ | |
- name: Pack for ASP.NET Core | |
run: | | |
dotnet pack -c Release ./src/Mscc.GenerativeAI.Web/Mscc.GenerativeAI.Web.csproj -o output/ | |
- name: Pack for .NET using Google Cloud Client Library | |
run: | | |
dotnet pack -c Release ./src/Mscc.GenerativeAI.Google/Mscc.GenerativeAI.Google.csproj -o output/ | |
- name: Push to GitHub Package Registry (GPR) | |
run: | | |
dotnet nuget push output/*.nupkg --skip-duplicate |