mirror of
https://github.com/sharkdp/fd
synced 2024-09-30 04:55:28 +00:00
Move Winget Releaser inside CICD workflow
This commit is contained in:
parent
c9afbc5b70
commit
4356ba3c43
12
.github/workflows/CICD.yml
vendored
12
.github/workflows/CICD.yml
vendored
|
@ -338,3 +338,15 @@ jobs:
|
|||
${{ steps.debian-package.outputs.DPKG_PATH }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
winget:
|
||||
name: Publish to Winget
|
||||
runs-on: windows-latest # Action can only run on Windows
|
||||
needs: build
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: vedantmgoyal2009/winget-releaser@v2
|
||||
with:
|
||||
identifier: sharkdp.fd
|
||||
installers-regex: '-pc-windows-msvc\.zip$'
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
|
|
14
.github/workflows/winget.yml
vendored
14
.github/workflows/winget.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
name: Publish to Winget
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: windows-latest # Action can only run on Windows
|
||||
steps:
|
||||
- uses: vedantmgoyal2009/winget-releaser@v2
|
||||
with:
|
||||
identifier: sharkdp.fd
|
||||
installers-regex: '-pc-windows-msvc\.zip$'
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
Loading…
Reference in a new issue