Skip to content

Commit

Permalink
Restore NuGet package publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Arasz committed Aug 21, 2023
1 parent e70dd9e commit 29270e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .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: Build and test
name: Build and publish package

on:
push:
Expand All @@ -10,7 +10,7 @@ on:
branches: [ "main" ]

jobs:
build-and-test:
build-and-publish:

runs-on: ubuntu-latest

Expand All @@ -26,3 +26,7 @@ jobs:
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish package
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push "./nupkg/dotnet-clean-artifacts.*.nupkg" --api-key "$NUGET_API_KEY" --source "https://api.nuget.org/v3/index.json"

0 comments on commit 29270e4

Please sign in to comment.