-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Description
A few months back, I made a PR to microsoft/winget-pkgs repo so simple-http-server can be installed by your user-base from windows package manager, winget, via a simple command: winget install TheWaWaR.simple-http-server
It could be useful to add a github action on this repo so that the winget package gets updated on every github release.
Describe the solution you'd like to see.
Here is a reference article based on Winget-Releaser@v2 Github Action
Below is an action yml files made to keep the winget package up-to-date on every github release, via Github Actions.
Requires:
- You will need to create a classic Personal Access Token (PAT) with public_repo scope.
- This token should be added as a repository secret by creating a new repo secret with name
WINGET_ACC_TOKENand value the token - Fork microsoft/winget-pkgs under the same account/organization as the project's repository. If you are forking winget-pkgs on a different account (e.g. bot/personal account), you can use the fork-user input to specify the username of the account where the fork is present.
name: Publish to WinGet
on:
release:
types: [ released ]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@v2
with:
identifier: TheWaWaR.simple-http-server
token: ${{ secrets.WINGET_TOKEN }}
installers-regex: 'windows*\.exe$' Metadata
Metadata
Assignees
Labels
No labels