diff --git a/.github/workflows/winget_deploy.yml b/.github/workflows/winget_deploy.yml new file mode 100644 index 0000000..73d0e1b --- /dev/null +++ b/.github/workflows/winget_deploy.yml @@ -0,0 +1,35 @@ +ο»Ώname: Publish WinGet Release + +on: + release: + types: [published] + +jobs: + build-and-pack: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Extract version (without v) + id: version + run: | + if [ "${{ github.event_name }}" = "release" ]; then + # Extract version from release tag (remove any 'v' prefix) + VERSION="${{ github.event.release.tag_name }}" + VERSION=${VERSION#v} # Remove 'v' prefix if present + else + VERSION="${{ github.event.inputs.version }}" + VERSION=${VERSION#v} # Remove 'v' prefix if present + fi + + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Syncing version: $VERSION" + + - name: Update Winget package + uses: vedantmgoyal9/winget-releaser@main + with: + identifier: TragicCode.BuslyCLI + installers-regex: 'busly-cli-${{ github.event.release.tag_name }}-win-(x64)\.zip$' + token: ${{ secrets.GH_TOKEN_FOR_WINGET_PUBLISH }} \ No newline at end of file diff --git a/README.md b/README.md index 62efe9b..42f9004 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Built for speed and simplicity, this tool streamlines common **messaging**, **te - 🌐 **Supported transports** – Works with **Azure Service Bus**, **RabbitMQ**, and **AWS SQS**. - βš™οΈ **Transport configuration file** – Configure and easily switch between multiple transports. Transports can run on your **local machine** or be pointed to **development**, **staging**, or **production** environments. - πŸ’» **Cross-platform support** – Works seamlessly on Windows, macOS, and Linux. -- πŸ“¦ **Multiple installation options** – Install via **Chocolatey**, **Docker**, **.NET tool (via NuGet)**, or by **downloading the binary directly from GitHub Releases**. +- πŸ“¦ **Multiple installation options** – Install via **Chocolatey**, **WinGet**, **Docker**, **.NET tool (via NuGet)**, or by **downloading the binary directly from GitHub Releases**. ## Docs diff --git a/website/docs/introduction/introduction.mdx b/website/docs/introduction/introduction.mdx index fa6bc03..0aee05d 100644 --- a/website/docs/introduction/introduction.mdx +++ b/website/docs/introduction/introduction.mdx @@ -23,6 +23,6 @@ Built for speed and simplicity, this tool streamlines common **messaging**, **te - 🌐 **Supported transports** – Works with **Azure Service Bus**, **RabbitMQ**, and **AWS SQS**. - βš™οΈ **Transport configuration file** – Configure and easily switch between multiple transports. Transports can run on your **local machine** or be pointed to **development**, **staging**, or **production** environments. - πŸ’» **Cross-platform support** – Works seamlessly on Windows, macOS, and Linux. -- πŸ“¦ **Multiple installation options** – Install via **Chocolatey**, **Docker**, **.NET tool (via NuGet)**, or by **downloading the binary directly from GitHub Releases**. +- πŸ“¦ **Multiple installation options** – Install via **Chocolatey**, **WinGet**, **Docker**, **.NET tool (via NuGet)**, or by **downloading the binary directly from GitHub Releases**. diff --git a/website/docs/introduction/quick-start.mdx b/website/docs/introduction/quick-start.mdx index 5a19b8b..8279102 100644 --- a/website/docs/introduction/quick-start.mdx +++ b/website/docs/introduction/quick-start.mdx @@ -18,6 +18,13 @@ Busly CLI was built from the ground up for cross-platform compatibility and offe choco install busly-cli -y ``` + + + +```bash +winget install TragicCode.BuslyCLI +``` +