File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 21
21
uses : actions/setup-dotnet@v4
22
22
with :
23
23
dotnet-version : ${{ matrix.dotnet-version }}
24
+ source-url : https://nuget.pkg.github.com/mscraftsman/index.json
25
+ env :
26
+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
24
27
- name : Build
25
28
run : |
26
29
dotnet build ./GenerativeAI.sln -c Release
30
33
# - name: Test Mscc.GenerativeAI.Google
31
34
# run: |
32
35
# dotnet test ./tests/Mscc.GenerativeAI.Google/Test.Mscc.GenerativeAI.Google.csproj -c Release --logger "console;verbosity=detailed"
36
+ - name : Pack for .NET
37
+ run : |
38
+ dotnet pack -c Release ./src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj -o output/
39
+ - name : Pack for ASP.NET Core
40
+ run : |
41
+ dotnet pack -c Release ./src/Mscc.GenerativeAI.Web/Mscc.GenerativeAI.Web.csproj -o output/
42
+ - name : Pack for .NET using Google Cloud Client Library
43
+ run : |
44
+ dotnet pack -c Release ./src/Mscc.GenerativeAI.Google/Mscc.GenerativeAI.Google.csproj -o output/
45
+ - name : Push to GitHub Package Registry (GPR)
46
+ run : |
47
+ dotnet nuget push output/*.nupkg --skip-duplicate
You can’t perform that action at this time.
0 commit comments