Skip to content

Commit

Permalink
feat: add winget releaser (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Dec 6, 2023
1 parent cb441b1 commit 9baf610
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: Package.Identifier
installers-regex: '\.msi' # Only .msi files
token: ${{ secrets.WINGET_TOKEN }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ To install Pixi on Windows, open a PowerShell terminal (you may need to run it a
iwr -useb https://pixi.sh/install.ps1 | iex
```
The script will inform you once the installation is successful and add the ~/.pixi/bin directory to your PATH, which will allow you to run the pixi command from any location.
Or with `winget`
```
winget install prefix-dev.pixi
```


### Autocompletion

Expand Down
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ To install `pixi` you can run the following command in your terminal:
The script will also update your `~/.bash_profile` to include `~/.pixi/bin` in your PATH, allowing you to invoke the `pixi` command from anywhere.

=== "Windows"
PowerShell:
`PowerShell`:
```powershell
iwr -useb https://pixi.sh/install.ps1 | iex
```

`winget`:
```
winget install prefix-dev.pixi
```
The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `LocalAppData/pixi/bin`.
If this directory does not already exist, the script will create it.

Expand Down

0 comments on commit 9baf610

Please sign in to comment.