Skip to content

Commit

Permalink
ci: remove brew bottling scripts
Browse files Browse the repository at this point in the history
I'm going to follow the goreleaser pattern of skipping bottles/casks
and just doing binary installs. This means I don't need to repackage
each binary into a separate artifact.

See
peterldowns/homebrew-tap@e4756b9
for an example of what the brew Formula looks like --- it just consumes
the built binaries. Simple.
  • Loading branch information
peterldowns committed Apr 4, 2024
1 parent c3c6d97 commit fe5d709
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 131 deletions.
47 changes: 0 additions & 47 deletions .brew/INSTALL_RECEIPT.tpl.json

This file was deleted.

29 changes: 0 additions & 29 deletions .brew/localias.tpl.rb

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @bin/localias-darwin-amd64 \
"$upload_url?name=localias-darwin-amd64&label=localias-darwin-amd64"
bottle_name=$(./scripts/make-bottle.sh ./bin/localias-darwin-amd64 monterey)
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${bottle_name}" \
"$upload_url?name=${bottle_name}&label=${bottle_name}"
- name: release-darwin-arm64
run: |
ldflags=$(./scripts/golang-ldflags.sh)
Expand All @@ -42,11 +37,6 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @bin/localias-darwin-arm64 \
"$upload_url?name=localias-darwin-arm64&label=localias-darwin-arm64"
bottle_name=$(./scripts/make-bottle.sh ./bin/localias-darwin-arm64 arm64_monterey)
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${bottle_name}" \
"$upload_url?name=${bottle_name}&label=${bottle_name}"
- name: release-linux-arm64
run: |
ldflags=$(./scripts/golang-ldflags.sh)
Expand All @@ -56,11 +46,6 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @bin/localias-linux-arm64 \
"$upload_url?name=localias-linux-arm64&label=localias-linux-arm64"
bottle_name=$(./scripts/make-bottle.sh ./bin/localias-linux-arm64 arm64_linux)
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${bottle_name}" \
"$upload_url?name=${bottle_name}&label=${bottle_name}"
- name: release-linux-amd64
run: |
ldflags=$(./scripts/golang-ldflags.sh)
Expand All @@ -70,8 +55,3 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @bin/localias-linux-amd64 \
"$upload_url?name=localias-linux-amd64&label=localias-linux-amd64"
bottle_name=$(./scripts/make-bottle.sh ./bin/localias-linux-amd64 x86_64_linux)
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${bottle_name}" \
"$upload_url?name=${bottle_name}&label=${bottle_name}"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🏠 localias

![Latest Version](https://badgers.space/badge/latest%20version/v2.0.0/blueviolet?corner_radius=m)
![Latest Version](https://badgers.space/badge/latest%20version/v2.0.3/blueviolet?corner_radius=m)
![Golang](https://badgers.space/badge/golang/1.18+/blue?corner_radius=m)

Localias is a tool for developers to securely manage local aliases for development servers.
Expand Down
34 changes: 0 additions & 34 deletions scripts/make-bottle.sh

This file was deleted.

0 comments on commit fe5d709

Please sign in to comment.