diff --git a/.github/actions/winget-publish/action.yaml b/.github/actions/winget-publish/action.yaml deleted file mode 100644 index 77c155973..000000000 --- a/.github/actions/winget-publish/action.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Winget Publish -description: A composite action to publish packages to the Windows Package Manager (Winget) repository - -inputs: - release-version: - description: "Version to publish to Winget package manager (without 'v' prefix)" - required: true - token: - description: "GitHub token with public read permissions on the source repo" - required: true - -runs: - using: "composite" - steps: - - name: Submit package to Windows Package Manager Community Repository - if: ${{ runner.os == 'Windows' }} - env: - GITHUB_TOKEN: ${{ inputs.token }} - run: | - # Download latest wingetcreate - Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe - - $packageId = "Deskflow.Deskflow" - $x64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-x64.msi" - $arm64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-arm64.msi" - - # Submit package update - .\wingetcreate.exe update "$packageId" ` - --version "${{ inputs.release-version }}" ` - --urls "$x64Url|x64" "$arm64Url|arm64"` - --submit ` - --token "${{ inputs.token }}" - shell: pwsh diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1560331e8..ba717ac3d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -457,20 +457,3 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/deskflow/homebrew-tap/dispatches \ -d '{"event_type":"update_tap"}' - - winget-publish: - needs: release - if: contains(github.ref, 'tags/v') - runs-on: windows-latest - steps: - - name: Fancy Checkout - uses: sithlord48/fancy-checkout@v2 - - - name: Get version - uses: ./.github/actions/get-version - - - name: Submit - uses: ./.github/actions/winget-publish - with: - release-version: ${{env.DESKFLOW_PACKAGE_VERSION}} - token: ${{ secrets.WINGET_DEPLOY_TOKEN }}