Skip to content

Commit cb30954

Browse files
authored
Merge pull request #7 from shellrow/release
Remove homebrew settings
2 parents e87a7d6 + 50670fb commit cb30954

3 files changed

Lines changed: 2 additions & 59 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -279,61 +279,14 @@ jobs:
279279
280280
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
281281
282-
publish-homebrew-formula:
283-
needs:
284-
- plan
285-
- host
286-
runs-on: "ubuntu-22.04"
287-
env:
288-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
289-
PLAN: ${{ needs.plan.outputs.val }}
290-
GITHUB_USER: "axo bot"
291-
GITHUB_EMAIL: "admin+bot@axo.dev"
292-
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
293-
steps:
294-
- uses: actions/checkout@v4
295-
with:
296-
persist-credentials: false
297-
repository: "shellrow/homebrew-tap-chmod-bpf"
298-
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
299-
# So we have access to the formula
300-
- name: Fetch homebrew formulae
301-
uses: actions/download-artifact@v4
302-
with:
303-
pattern: artifacts-*
304-
path: Formula/
305-
merge-multiple: true
306-
# This is extra complex because you can make your Formula name not match your app name
307-
# so we need to find releases with a *.rb file, and publish with that filename.
308-
- name: Commit formula files
309-
run: |
310-
git config --global user.name "${GITHUB_USER}"
311-
git config --global user.email "${GITHUB_EMAIL}"
312-
313-
for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do
314-
filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output)
315-
name=$(echo "$filename" | sed "s/\.rb$//")
316-
version=$(echo "$release" | jq .app_version --raw-output)
317-
318-
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
319-
brew update
320-
# We avoid reformatting user-provided data such as the app description and homepage.
321-
brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true
322-
323-
git add "Formula/${filename}"
324-
git commit -m "${name} ${version}"
325-
done
326-
git push
327-
328282
announce:
329283
needs:
330284
- plan
331285
- host
332-
- publish-homebrew-formula
333286
# use "always() && ..." to allow us to wait for all publish jobs while
334287
# still allowing individual publish jobs to skip themselves (for prereleases).
335288
# "host" however must run to completion, no skipping allowed!
336-
if: ${{ always() && needs.host.result == 'success' && (needs.publish-homebrew-formula.result == 'skipped' || needs.publish-homebrew-formula.result == 'success') }}
289+
if: ${{ always() && needs.host.result == 'success' }}
337290
runs-on: "ubuntu-22.04"
338291
env:
339292
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,9 @@ cargo-dist-version = "0.28.7"
3737
# CI backends to support
3838
ci = "github"
3939
# The installers to generate for each app
40-
installers = ["shell", "homebrew"]
41-
# A GitHub repo to push Homebrew formulas to
42-
tap = "shellrow/homebrew-tap-chmod-bpf"
40+
installers = ["shell"]
4341
# Target platforms to build apps for (Rust target-triple syntax)
4442
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin"]
45-
# Publish jobs to run in CI
46-
publish-jobs = ["homebrew"]
4743
# Which actions to run on pull requests
4844
pr-run-mode = "plan"
4945
# Whether to install an updater program

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ Managing BPF device permissions on macOS.
2222
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/shellrow/chmod-bpf/releases/latest/download/chmod-bpf-installer.sh | sh
2323
```
2424

25-
### Install prebuilt binaries via Homebrew
26-
27-
```sh
28-
brew install shellrow/tap-chmod-bpf/chmod-bpf
29-
```
30-
3125
### Cargo
3226

3327
```sh

0 commit comments

Comments
 (0)