Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rodion-m committed Apr 18, 2023
1 parent 238778f commit 8fdadcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: .NET
name: Build and Test

on:
push:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/publish_to_nuget.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: Publish NuGet Package

on:
release:
Expand Down Expand Up @@ -26,5 +26,12 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: dotnet test --no-build --verbosity normal

- name: Publish
run: dotnet nuget push "**\*.nupkg" --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}}
run: dotnet pack --no-build --configuration Release --output packages
- name: Push NuGet Packages
run: |
for pkg in packages/*.nupkg; do
echo "Pushing $pkg..."
dotnet nuget push $pkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
done

0 comments on commit 8fdadcd

Please sign in to comment.