From fcf59d12a8547783dd04a9a82340fc29965d870b Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Wed, 15 Mar 2023 16:47:34 +0100 Subject: [PATCH] remove winget workflow --- .github/workflows/winget.yml | 49 ------------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml deleted file mode 100644 index 632b02de5..000000000 --- a/.github/workflows/winget.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Release to Winget - -on: - workflow_call: - inputs: - releaseTag: - required: true - type: string - workflow_dispatch: - inputs: - releaseTag: - description: 'Release tag name' - required: true - type: string - -jobs: - publish-winget: - name: Publish on winget repo - runs-on: windows-latest - steps: - - name: Get download url for release assets - id: get-release-assets - uses: actions/github-script@v6 - with: - script: | - const query =`query($tag:String!) { - repository(owner:"cryptomator", name:"cryptomator"){ - release(tagName: $tag) { - releaseAssets(first:20) { - nodes { - name - downloadUrl - } - } - } - } - }`; - const variables = { - tag: "${{ inputs.releaseTag }}" - } - return await github.graphql(query, variables) - - name: Submit package to Windows Package Manager Community Repository - id: submit-winget - run: | - iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe - $releaseAssets = (ConvertFrom-Json '${{ steps.get-release-assets.outputs.result }}').repository.release.releaseAssets.nodes - $installerUrl = $releaseAssets | Where-Object -Property name -match '^Cryptomator-.*\.msi$' | Select -ExpandProperty downloadUrl -First 1 - .\wingetcreate.exe update Cryptomator.Cryptomator -s -v "${{ inputs.releaseTag }}" -u "$installerUrl" -t ${{ secrets.CRYPTOBOT_WINGET_TOKEN }} - shell: pwsh