From b5cce07d9e4f0f20561224afe99337e61287091e Mon Sep 17 00:00:00 2001 From: Paul Gellai Date: Fri, 22 Mar 2024 11:31:04 -0700 Subject: [PATCH] separate winget action --- .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..793a556 --- /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 }} \ No newline at end of file