Skip to content

Commit

Permalink
Merge pull request #320 from XeroAPI/github-actions-tidied-up
Browse files Browse the repository at this point in the history
Tidy up dotnet.yml
  • Loading branch information
jamie-hoffmann-xero authored Feb 11, 2021
2 parents ad9cc09 + ed474e2 commit 9186654
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 9186654

Please sign in to comment.