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

Added winget publish pipeline #148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

parzival-space
Copy link

@parzival-space parzival-space commented Jan 7, 2024

This should automate the release/update process for the GoXLR-on-Linux.GoXLR-Utility winget package.
The pipeline basically consists of only one action that is executed as soon as a new version is released.

There are no manifest files included in this PR as the action will only update the existing one that I have already published in the community repository.

Sadly, you cannot easily merge this PR yet.
Winget works by creating and merging PRs from users on the Github user repository.
So all this pipeline does is automatically creating the PR for you using your account.

The pipeline expects an action secret called WINGET_TOKEN, which must be a classic personal access token with the scope public_repo.

You will also need a fork of the winget-pks repository on the account that will run the action.
I personally would create a bot account for this action, just to not clutter my github repos. But that's entirely up to you 🙂

The action has the option to specify the username of the Github account that will be used to create the PR by adding fork-user to the winget-releaser step.

@parzival-space
Copy link
Author

Just to provide an example for runnging this under a different user:

- uses: vedantmgoyal2009/winget-releaser@v2
  with:
      identifier: GoXLR-on-Linux.GoXLR-Utility
      installers-regex: ^goxlr-utility-(\d+(\.\d+)*)\.exe$
      token: ${{ secrets.WINGET_TOKEN }} # token for goxlr-utility-bot
      fork-user: goxlr-utility-bot

This should run the action as goxlr-utility-bot with the given WINGET_TOKEN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant