summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Caezar Itang <sitiom@proton.me>2023-03-15 17:36:48 +0800
committerDavid Peter <sharkdp@users.noreply.github.com>2023-03-15 20:56:07 +0100
commitba4c3d6bdb558fca61a5a7ac792ce0ac68b5e76f (patch)
tree87317fb5f06fe09cb2d51cf48f1f873beb2730bd
parent1c7a8cc2f6b0f9a8cd7eda2ff7a6d8db2e04061f (diff)
Move Winget Releaser inside CICD workflow
-rw-r--r--.github/workflows/CICD.yml12
-rw-r--r--.github/workflows/winget.yml14
2 files changed, 12 insertions, 14 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml
index 02bf48a..569d006 100644
--- a/.github/workflows/CICD.yml
+++ b/.github/workflows/CICD.yml
@@ -330,3 +330,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.hyperfine
+ installers-regex: '-pc-windows-msvc\.zip$'
+ token: ${{ secrets.WINGET_TOKEN }}
diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml
deleted file mode 100644
index 3b95532..0000000
--- a/.github/workflows/winget.yml
+++ /dev/null
@@ -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.hyperfine
- installers-regex: '-pc-windows-msvc\.zip$'
- token: ${{ secrets.WINGET_TOKEN }}