Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
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
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,25 @@ jobs:
run: |
cd packaging/chocolatey
choco push (Get-ChildItem *.nupkg).Name --source https://push.chocolatey.org/ --key ${{ secrets.CHOCOLATEY_API_KEY }}

winget:
needs: goreleaser
runs-on: windows-latest
steps:
- name: Install wingetcreate
shell: pwsh
run: |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe

- name: Submit to Winget
shell: pwsh
run: |
$version = "${{ github.ref_name }}".TrimStart('v')
$x64 = "https://github.com/open-cli-collective/confluence-cli/releases/download/${{ github.ref_name }}/cfl_${version}_windows_amd64.zip"
$arm64 = "https://github.com/open-cli-collective/confluence-cli/releases/download/${{ github.ref_name }}/cfl_${version}_windows_arm64.zip"

Write-Host "Submitting version $version to Winget"
Write-Host "x64 URL: $x64"
Write-Host "arm64 URL: $arm64"

./wingetcreate.exe update OpenCLICollective.cfl --version $version --urls $x64 $arm64 --submit --token ${{ secrets.WINGET_GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/winget-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish to Winget

on:
workflow_dispatch:
inputs:
version:
description: 'Version to publish (e.g., 0.9.9)'
required: true
type: string

jobs:
publish:
runs-on: windows-latest
steps:
- name: Install wingetcreate
shell: pwsh
run: |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe

- name: Validate release exists
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
$release = gh release view "v${{ inputs.version }}" --repo open-cli-collective/confluence-cli --json tagName 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Error "Release v${{ inputs.version }} not found"
exit 1
}
Write-Host "Found release v${{ inputs.version }}"

- name: Submit to Winget
shell: pwsh
run: |
$version = "${{ inputs.version }}"
$x64 = "https://github.com/open-cli-collective/confluence-cli/releases/download/v$version/cfl_${version}_windows_amd64.zip"
$arm64 = "https://github.com/open-cli-collective/confluence-cli/releases/download/v$version/cfl_${version}_windows_arm64.zip"

Write-Host "Submitting version $version to Winget"
Write-Host "x64 URL: $x64"
Write-Host "arm64 URL: $arm64"

./wingetcreate.exe update OpenCLICollective.cfl --version $version --urls $x64 $arm64 --submit --token ${{ secrets.WINGET_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ packaging/

- **Homebrew**: Automated via GoReleaser, published to [open-cli-collective/homebrew-tap](https://github.com/open-cli-collective/homebrew-tap)
- **Chocolatey**: Automated via release workflow, requires `CHOCOLATEY_API_KEY` secret
- **Winget**: Manual PR submission to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs), documented in `packaging/winget/README.md`
- **Winget**: Automated via release workflow, requires `WINGET_GITHUB_TOKEN` secret (PAT with `public_repo` scope)
8 changes: 8 additions & 0 deletions packaging/winget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This directory contains the Winget manifest templates for distributing confluence-cli on Windows via `winget install OpenCLICollective.cfl`.

## Automated Publishing

Publishing to Winget is automated via GitHub Actions. When a new release tag is pushed, the release workflow uses `wingetcreate` to submit a PR to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs).

**Required secret:** `WINGET_GITHUB_TOKEN` - A GitHub PAT with `public_repo` scope, needed to create PRs on microsoft/winget-pkgs.

**Note:** Unlike Chocolatey (direct publish), Winget submissions are PRs that go through Microsoft's automated validation before merging.

## Manifest Structure

```
Expand Down