Skip to content

Commit

Permalink
add winget thing
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg committed Mar 9, 2024
1 parent 68feff9 commit 7f80b99
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,20 @@ jobs:
- uses: ncipollo/release-action@v1
with:
artifacts: "./ssh-sync-setup/ssh-sync-setup.exe,./ssh-sync/ssh-sync"
update-winget-manifest:
needs: [build-docker, build-windows, build-linux, release]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install wingetcreate
run: winget install --id=Microsoft.WingetCreate --exact --accept-package-agreements --accept-source-agreements
- name: Update winget manifest
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
$tag = "${{ github.ref_name }}"
wingetcreate update therealpaulgg.ssh-sync --version $tag --token $ACCESS_TOKEN --url https://github.com/therealpaulgg/ssh-sync/releases/download/$tag/ssh-sync-setup.exe --submit
shell: powershell


0 comments on commit 7f80b99

Please sign in to comment.