From 58861694f8a99fb8043183f602399b5970de0e05 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 27 Mar 2024 00:41:06 -0700 Subject: [PATCH] separate winget action (#46) * separate winget action * newline --- .github/workflows/release.yml | 10 ---------- .github/workflows/update-winget-manifest.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/update-winget-manifest.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec5dcc9..30eef1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,13 +101,3 @@ jobs: - uses: ncipollo/release-action@v1 with: artifacts: "./ssh-sync-setup/ssh-sync-setup.exe,./ssh-sync/ssh-sync,./packages/*.deb,./packages/*.rpm" - update-winget-manifest: - needs: [build-docker, build-windows, build-linux, release] - runs-on: windows-latest - steps: - - uses: vedantmgoyal2009/winget-releaser@v2 - with: - identifier: therealpaulgg.ssh-sync - version: ${{ github.ref_name }} - release-tag: ${{ github.ref_name }} - token: ${{ secrets.ACCESS_TOKEN_CLASSIC }} diff --git a/.github/workflows/update-winget-manifest.yml b/.github/workflows/update-winget-manifest.yml new file mode 100644 index 0000000..dc094a6 --- /dev/null +++ b/.github/workflows/update-winget-manifest.yml @@ -0,0 +1,16 @@ +name: Update Winget Manifest + +on: + release: + types: [published] + +jobs: + update-winget-manifest: + runs-on: windows-latest + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: therealpaulgg.ssh-sync + version: ${{ github.ref_name }} + release-tag: ${{ github.ref_name }} + token: ${{ secrets.ACCESS_TOKEN_CLASSIC }}