From 54116608dc5e6c23ae4d4839318beef04245d78f Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 15 Jul 2024 22:33:57 +0800 Subject: [PATCH] ci: fix winget uploader --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe33672..4d280af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -258,12 +258,22 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} submit-to-winget: - runs-on: windows-latest + runs-on: ubuntu-latest needs: [release-update] steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get Version + run: | + sudo apt-get update + sudo apt-get install jq + echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV - name: Submit to Winget uses: vedantmgoyal9/winget-releaser@main with: identifier: ClashVergeRev.ClashVergeRev + version: ${{env.VERSION}} installers-regex: '_(arm64|x64|x86)-setup\.exe$' token: ${{ secrets.GITHUB_TOKEN }}