diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db2ad6c..e0ce3b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -185,79 +185,3 @@ jobs: checksum: sha256 ref: refs/tags/${{ needs.release.outputs.tag }} token: ${{ secrets.GITHUB_TOKEN }} - - # Rewrites Formula/soulseek-rs.rb in the tap to point at the archives the - # matrix just uploaded. The formula is generated whole rather than patched, so - # the workflow is the only place its contents live. - homebrew: - name: Homebrew tap - needs: [release, binaries] - if: needs.release.outputs.created == 'true' || inputs.tag != '' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - repository: michel/homebrew-tap - token: ${{ secrets.HOMEBREW_TAP_TOKEN }} - - - name: Write formula - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG: ${{ needs.release.outputs.tag }} - run: | - set -euo pipefail - base="https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG}" - sha() { - gh release download "$TAG" --repo "$GITHUB_REPOSITORY" \ - --pattern "soulseek-rs-$TAG-$1.sha256" --output - | cut -d' ' -f1 - } - mkdir -p Formula - cat > Formula/soulseek-rs.rb <