mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-13 23:57:08 +00:00
ci: add winget releaser workflow
This commit is contained in:
parent
8921545237
commit
6f9262fdb7
1 changed files with 15 additions and 0 deletions
15
.github/workflows/CICD.yml
vendored
15
.github/workflows/CICD.yml
vendored
|
@ -80,6 +80,9 @@ jobs:
|
||||||
- { os: windows-latest , target: i686-pc-windows-msvc }
|
- { 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-gnu }
|
||||||
- { os: windows-latest , target: x86_64-pc-windows-msvc }
|
- { os: windows-latest , target: x86_64-pc-windows-msvc }
|
||||||
|
outputs:
|
||||||
|
DEPLOY: ${{ steps.vars.outputs.DEPLOY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Install any prerequisites
|
- name: Install any prerequisites
|
||||||
|
@ -323,6 +326,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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:
|
coverage:
|
||||||
name: Code Coverage
|
name: Code Coverage
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
|
|
Loading…
Reference in a new issue