Skip to content

Commit

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

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

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

Expand All @@ -26,7 +26,3 @@ 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 e70dd9e

Please sign in to comment.