From ffe51a3b3801e5e39fc732c80083a4e001ecd861 Mon Sep 17 00:00:00 2001 From: Jack Westwood Date: Mon, 14 Oct 2024 13:57:04 +0100 Subject: [PATCH 1/2] Build nupkg on release --- .github/workflows/release.yml | 9 +++++++++ cbsh.nuspec | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 cbsh.nuspec diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8796e0d7..c364d757 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/cbsh.nuspec b/cbsh.nuspec new file mode 100644 index 00000000..e4841703 --- /dev/null +++ b/cbsh.nuspec @@ -0,0 +1,25 @@ + + + + + cbsh.portable + $version$ + Charles Dixon, Jack Westwood + Couchbase Shell (Portable) + Charles Dixon, Jack Westwood + https://couchbase.sh + https://github.com/couchbaselabs/couchbase-shell + https://github.com/couchbaselabs/couchbase-shell/issues + cli portable couchbase + The modern and fun shell for Couchbase server and Cloud + https://github.com/couchbaselabs/couchbase-shell/releases/tag/v$version$ + + + + + + + + + \ No newline at end of file From b8bd254bac2fe87faea06b3eb44696ba0f8322ac Mon Sep 17 00:00:00 2001 From: Jack Westwood Date: Mon, 21 Oct 2024 08:19:03 +0100 Subject: [PATCH 2/2] Change Cloud to Cocuhbase Capella in package descriptions --- .github/workflows/release.yml | 2 +- cbsh.nuspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c364d757..ae84f739 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,7 +137,7 @@ jobs: Maintainer: jack.westwood@couchbase.com 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 }} diff --git a/cbsh.nuspec b/cbsh.nuspec index e4841703..07dc15d2 100644 --- a/cbsh.nuspec +++ b/cbsh.nuspec @@ -12,7 +12,7 @@ enclosed in quotation marks, you should use an editor that supports UTF-8, not t https://github.com/couchbaselabs/couchbase-shell https://github.com/couchbaselabs/couchbase-shell/issues cli portable couchbase - The modern and fun shell for Couchbase server and Cloud + The modern and fun shell for Couchbase Server and Couchbase Capella https://github.com/couchbaselabs/couchbase-shell/releases/tag/v$version$