Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build nupkg on release #537

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ jobs:
7z a -tzip ${{ env.RELEASE_BIN }}-${{ matrix.target }}.zip ./target/release/${{ env.RELEASE_BIN_WINDOWS }} ${{ env.RELEASE_ADDS }}
if: matrix.os == 'windows-latest'

- name: Release windows build to NuGet
id: releasetonuget
run: |
choco pack cbsh.nuspec --version ${{ needs.build.outputs.version }}
ls
choco apikey --key ${{ secrets.ChocolateyKey }} --source https://push.chocolatey.org/
choco push --source https://push.chocolatey.org/
if: matrix.os == 'windows-latest'

- name: Create Debian amd package
id: createdebianpkg
run: |
Expand All @@ -128,7 +137,7 @@ jobs:
Maintainer: [email protected]
Architecture: ${{ matrix.arch }}
Homepage: www.couchbase.sh
Description: The modern and fun shell for Couchbase Server and Cloud" > ./couchbase-shell_${{ steps.version.outputs.value }}_${{ matrix.target }}/DEBIAN/control
Description: The modern and fun shell for Couchbase Server and Couchbase Capella" > ./couchbase-shell_${{ steps.version.outputs.value }}_${{ matrix.target }}/DEBIAN/control
cp {LICENSE,LICENSE_AGREEMENT,NOTICES,README.md} ./couchbase-shell_${{ steps.version.outputs.value }}_${{ matrix.target }}/usr/bin
cp ./target/${{ matrix.target }}/release/${{ env.RELEASE_BIN }} ./couchbase-shell_${{ steps.version.outputs.value }}_${{ matrix.target }}/usr/bin
dpkg --build ./couchbase-shell_${{ steps.version.outputs.value }}_${{ matrix.target }}
Expand Down
25 changes: 25 additions & 0 deletions cbsh.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter
enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>cbsh.portable</id>
<version>$version$</version>
<owners>Charles Dixon, Jack Westwood</owners>
<title>Couchbase Shell (Portable)</title>
<authors>Charles Dixon, Jack Westwood</authors>
<projectUrl>https://couchbase.sh</projectUrl>
<projectSourceUrl>https://github.com/couchbaselabs/couchbase-shell</projectSourceUrl>
<bugTrackerUrl>https://github.com/couchbaselabs/couchbase-shell/issues</bugTrackerUrl>
<tags>cli portable couchbase</tags>
<description>The modern and fun shell for Couchbase Server and Couchbase Capella</description>
<releaseNotes>https://github.com/couchbaselabs/couchbase-shell/releases/tag/v$version$</releaseNotes>
</metadata>
<files>
<file src="./target/release/cbsh.exe" target="tools/cbsh.exe" />
<file src="NOTICES" target="tools/NOTICES.txt" />
<file src="LICENSE" target="tools/LICENSE.txt" />
<file src="LICENSE_AGREEMENT" target="tools/LICENSE_AGREEMENT.txt" />
<file src="README.md" target="tools/README.md" />
</files>
</package>
Loading