diff --git a/.github/workflows/winget_deploy.yml b/.github/workflows/winget_deploy.yml index 2dcd78d..9afb89c 100644 --- a/.github/workflows/winget_deploy.yml +++ b/.github/workflows/winget_deploy.yml @@ -12,25 +12,10 @@ jobs: - name: Checkout uses: actions/checkout@v6 - - name: Extract version (without v) - id: version - run: | - if [ "${{ github.event_name }}" = "release" ]; then - # Extract version from release tag (remove any 'v' prefix) - VERSION="${{ github.event.release.tag_name }}" - VERSION=${VERSION#v} # Remove 'v' prefix if present - else - VERSION="${{ github.event.inputs.version }}" - VERSION=${VERSION#v} # Remove 'v' prefix if present - fi - - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "Syncing version: $VERSION" - - name: Update Winget package uses: michidk/winget-updater@v1 with: komac-token: ${{ secrets.GH_TOKEN_FOR_WINGET_PUBLISH }} identifier: "TragicCode.BuslyCLI" repo: "TraGicCode/busly-cli" - url: "https://github.com/TraGicCode/busly-cli/releases/download/v${{ github.event.release.tag_name }}/busly-cli-v${{ github.event.release.tag_name }}-win-x64.zip" + url: "https://github.com/TraGicCode/busly-cli/releases/download/${{ github.event.release.tag_name }}/busly-cli-${{ github.event.release.tag_name }}-win-x64.zip"