fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Add Winget release action

Open Daverd-GM opened this issue 1 week ago • 1 comments

here is a possible YAML with the action

it requieres 3 things:

  1. a manual release prior maybe with Komak
  2. a classic PAT in the github secret with the name WINGET_TOKEN
  3. a fork of the https://github.com/microsoft/winget-pkgs in the account of the owner of the repo
name: Publish to winget
on:
  release:
    types: [released]
jobs:
  publish-winget:
    runs-on: ubuntu-latest
    env:
      REPO: sinelaw/fresh
    steps:

      - name: Determine tag and version
        id: ver
        shell: bash
        run: |
          TAG="${{ github.event.release.tag_name }}"
          # Strip leading "v" if present
          VERSION="${TAG#v}"
          echo "tag=$TAG" >> "$GITHUB_OUTPUT"
          echo "version=$VERSION" >> "$GITHUB_OUTPUT"
          echo "Determined TAG=$TAG VERSION=$VERSION"

      - name: WinGet Releaser
        uses: vedantmgoyal9/winget-releaser@v2
        with:
          identifier: "Sinelaw.Fresh"        # identificador del paquete en winget (ejemplo)
          version: ${{ steps.ver.outputs.version }}  # versión publicada
          installers-regex: '\.zip$'        # o usa '\.exe$' si subes un .exe
          release-tag: ${{ steps.ver.outputs.tag }}
          token: ${{ secrets.WINGET_TOKEN }} # secret con PAT (public_repo)
      - name: Done
        run: echo "Winget publish attempted for version ${{ steps.ver.outputs.version }}"

Daverd-GM avatar Dec 26 '25 05:12 Daverd-GM

Saw video from DistroTube and immediately searched for Fresh in winget only to find it's not there it. Chocolatey and Scoop do not have app too.

NSurtsev avatar Dec 26 '25 07:12 NSurtsev