Skip to content

Commit

Permalink
ci: testing the success flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 23, 2024
1 parent d9b0e4e commit 1a468db
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: .NET
on:
release:
types: [published]
pull_request:
branches:
- master

jobs:
build:
Expand Down Expand Up @@ -43,17 +46,17 @@ jobs:
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Build
run: dotnet build --no-restore
working-directory: Xero-NetStandard
# - name: Build
# run: dotnet build --no-restore
# working-directory: Xero-NetStandard

- name: Create Package for Nuget.org\
run: dotnet pack
working-directory: Xero-NetStandard
# - name: Create Package for Nuget.org\
# run: dotnet pack
# working-directory: Xero-NetStandard

- name: Publish Package to Nuget.org
run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Release/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
working-directory: Xero-NetStandard
# - name: Publish Package to Nuget.org
# run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Release/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
# working-directory: Xero-NetStandard


notify-slack-on-success:
Expand Down

0 comments on commit 1a468db

Please sign in to comment.