Skip to content

Commit

Permalink
CI: Guard publishing to nuget based on the branch
Browse files Browse the repository at this point in the history
The CI workflow will only publish to nuget if running on the master or
geewallet-payments branches. The reference to the geewallet-payments
branch can be removed once the branch is merged to master.
  • Loading branch information
canndrew committed Apr 20, 2020
1 parent d0f0d51 commit 8395778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Upload BouncyCastle nuget package
run: |
cd $GITHUB_WORKSPACE/src/DotNetLightning.Core
if [ ${{ secrets.NUGET_API_KEY }} ]; then
# NOTE:
# the geewallet-payments branch reference here can be removed once this
# is merged to master
if [ ${{ secrets.NUGET_API_KEY }} ] && [ $GITHUB_REF == "refs/heads/master" -o $GITHUB_REF == "refs/heads/geewallet-payments" ]; then
dotnet nuget push ./bin/Release/DotNetLightning.Kiss.1*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
fi

0 comments on commit 8395778

Please sign in to comment.