Skip to content

Commit 7336b19

Browse files
committed
ci: publish ClnRpc nuget image with tag
1 parent 739459e commit 7336b19

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,23 @@ jobs:
125125
asset_name: DotNetLightning-${{ matrix.RID }}.${{ steps.get_version.outputs.VERSION }}.nupkg
126126
asset_content_type: application/zip
127127

128-
- name: Upload nuget packages (DotNetLightning.ClnRpc)
129-
if: startsWith(matrix.os, 'ubuntu')
130-
run: |
131-
dotnet pack -p:Configuration=Release src/DotNetLightning.ClnRpc -p:Portability=True
132-
if [ ${{ secrets.NUGET_API_KEY }} ]; then
133-
dotnet nuget push ./src/DotNetLightning.ClnRpc/bin/Release/DotNetLightning.ClnRpc.${{ steps.get_version.outputs.VERSION }}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
134-
fi
128+
- name: Upload nuget packages (DotNetLightning.ClnRpc)
129+
if: startsWith(matrix.os, 'ubuntu')
130+
run: |
131+
dotnet pack -p:Configuration=Release src/DotNetLightning.ClnRpc -p:Portability=True
132+
if [ ${{ secrets.NUGET_API_KEY }} ]; then
133+
dotnet nuget push ./src/DotNetLightning.ClnRpc/bin/Release/DotNetLightning.ClnRpc.${{ steps.get_version.outputs.VERSION }}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
134+
fi
135+
- name: upload release asset (DotNetLightning.ClnRpc)
136+
if: startsWith(matrix.os, 'ubuntu-20')
137+
uses: actions/upload-release-asset@v1
138+
env:
139+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
with:
141+
upload_url: ${{ steps.upload-url.outputs.url }}
142+
asset_path: ./src/DotNetLightning.ClnRpc/bin/Release/DotNetLightning.ClnRpc.${{ steps.get_version.outputs.VERSION }}.nupkg
143+
asset_name: DotNetLightning.ClnRpc-multiplatform.${{ steps.get_version.outputs.VERSION }}.nupkg
144+
asset_content_type: application/zip
135145

136146

137147
pack_and_push_prerelease:

0 commit comments

Comments
 (0)