Skip to content

Commit

Permalink
ci: add winget releaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom authored and zwpaper committed Aug 20, 2024
1 parent 8921545 commit 6f9262f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:
- { os: windows-latest , target: i686-pc-windows-msvc }
- { os: windows-latest , target: x86_64-pc-windows-gnu }
- { os: windows-latest , target: x86_64-pc-windows-msvc }
outputs:
DEPLOY: ${{ steps.vars.outputs.DEPLOY }}

steps:
- uses: actions/checkout@v1
- name: Install any prerequisites
Expand Down Expand Up @@ -323,6 +326,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

winget:
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.outputs.DEPLOY }}
steps:
- name: Publish to Winget
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: lsd-rs.lsd
installers-regex: 'pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}

coverage:
name: Code Coverage
runs-on: ${{ matrix.job.os }}
Expand Down

0 comments on commit 6f9262f

Please sign in to comment.