Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Winget releases #1664

Closed
Araxeus opened this issue Apr 13, 2023 · 1 comment · Fixed by #1665
Closed

Automate Winget releases #1664

Araxeus opened this issue Apr 13, 2023 · 1 comment · Fixed by #1665
Labels
enhancement New feature or request windows

Comments

@Araxeus
Copy link

Araxeus commented Apr 13, 2023

There's this awesome semi-official action – https://github.com/vedantmgoyal2009/winget-releaser

Used by many, including for example nushell , pnpm, vscodium, neovim, jacket, and many more

It is easy to set up and will automatically update https://github.com/microsoft/winget-pkgs/tree/master/manifests/r/rsteube/Carapace

Here's an example action.yml you could use:

name: Submit to Windows Package Manager Community Repository

on:
  release:
    types: [released]
  workflow_dispatch:
    inputs:
      tag_name:
        description: "Specific tag name"
        required: true
        type: string

jobs:
  winget:
    name: Publish winget package
    runs-on: windows-latest
    steps:
      - name: Submit package to Windows Package Manager Community Repository
        uses: vedantmgoyal2009/winget-releaser@v2
        with:
          identifier: rsteube.Carapace
          version: ${{ inputs.tag_name || github.event.release.tag_name }}
          release-tag: ${{ inputs.tag_name || github.event.release.tag_name }}
          token: ${{ secrets.WINGET_ACC_TOKEN }}
          fork-user: lapce-winget
@Araxeus
Copy link
Author

Araxeus commented Apr 13, 2023

Nice microsoft/winget-pkgs#102446

@rsteube the bot just needs to accept the policy for this first run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants