Skip to content

Commit

Permalink
Tidy up dotnet.yml
Browse files Browse the repository at this point in the history
- only run on release publish
- remove extra commands
- publish real SDK
  • Loading branch information
jamie-hoffmann-xero committed Feb 11, 2021
1 parent ad9cc09 commit ed474e2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: .NET

on:
# push:
# branches:
# - github-actions-nuget-deploy
workflow_dispatch:

release:
types: [published]

jobs:
build:
Expand All @@ -22,9 +19,7 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Create Package for Nuget.org\
run: dotnet pack
- name: find out where we are
run: pwd | ls
- name: Publish Package to Nuget.org
run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Debug/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit ed474e2

Please sign in to comment.