fresh
fresh copied to clipboard
Add Winget release action
here is a possible YAML with the action
it requieres 3 things:
- a manual release prior maybe with Komak
- a classic PAT in the github secret with the name WINGET_TOKEN
- 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 }}"
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.