Skip to content

Commit 2000cb6

Browse files
committed
Build nupkg on release
1 parent 4ab5d51 commit 2000cb6

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ jobs:
116116
7z a -tzip ${{ env.RELEASE_BIN }}-${{ matrix.target }}.zip ./target/release/${{ env.RELEASE_BIN_WINDOWS }} ${{ env.RELEASE_ADDS }}
117117
if: matrix.os == 'windows-latest'
118118

119+
- name: Release windows build to NuGet
120+
id: releasetonuget
121+
run: |
122+
choco pack cbsh.nuspec --version ${{ needs.build.outputs.version }}
123+
ls
124+
choco apikey --key ${{ secrets.ChocoKey }} --source https://push.chocolatey.org/
125+
choco push --source https://push.chocolatey.org/
126+
if: matrix.os == 'windows-latest'
127+
119128
- name: Create Debian amd package
120129
id: createdebianpkg
121130
run: |

cbsh.nuspec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter
3+
enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
4+
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
5+
<metadata>
6+
<id>cbsh.portable</id>
7+
<version>$version$</version>
8+
<owners>Charles Dixon, Jack Westwood</owners>
9+
<title>Couchbase Shell (Portable)</title>
10+
<authors>Charles Dixon, Jack Westwood</authors>
11+
<projectUrl>https://couchbase.sh</projectUrl>
12+
<projectSourceUrl>https://github.com/couchbaselabs/couchbase-shell</projectSourceUrl>
13+
<bugTrackerUrl>https://github.com/couchbaselabs/couchbase-shell/issues</bugTrackerUrl>
14+
<tags>cli portable couchbase</tags>
15+
<description>The modern and fun shell for Couchbase server and Cloud</description>
16+
<releaseNotes>https://github.com/couchbaselabs/couchbase-shell/releases/tag/v$version$</releaseNotes>
17+
</metadata>
18+
<files>
19+
<file src="./target/release/cbsh.exe" target="tools/cbsh.exe" />
20+
<file src="NOTICES" target="tools/NOTICES.txt" />
21+
<file src="LICENSE" target="tools/LICENSE.txt" />
22+
<file src="LICENSE_AGREEMENT" target="tools/LICENSE_AGREEMENT.txt" />
23+
<file src="README.md" target="tools/README.md" />
24+
</files>
25+
</package>

0 commit comments

Comments
 (0)