fix: broken CI release script by removing unnecessary homebrew bottli… #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
upload-binaries: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup-go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
cache: true | |
cache-dependency-path: go.sum | |
- name: release-darwin-amd64 | |
run: | | |
ldflags=$(./scripts/golang-ldflags.sh) | |
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$ldflags" -o ./bin/nix-search-darwin-amd64 ./cmd/nix-search | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \ | |
-H "Content-Type: application/octet-stream" \ | |
--data-binary @bin/nix-search-darwin-amd64 \ | |
"$upload_url?name=nix-search-darwin-amd64&label=nix-search-darwin-amd64" | |
- name: release-darwin-arm64 | |
run: | | |
ldflags=$(./scripts/golang-ldflags.sh) | |
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "$ldflags" -o ./bin/nix-search-darwin-arm64 ./cmd/nix-search | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "Content-Type: application/octet-stream" \ | |
--data-binary @bin/nix-search-darwin-arm64 \ | |
"$upload_url?name=nix-search-darwin-arm64&label=nix-search-darwin-arm64" | |
- name: release-linux-arm64 | |
run: | | |
ldflags=$(./scripts/golang-ldflags.sh) | |
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "$ldflags" -o ./bin/nix-search-linux-arm64 ./cmd/nix-search | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "Content-Type: application/octet-stream" \ | |
--data-binary @bin/nix-search-linux-arm64 \ | |
"$upload_url?name=nix-search-linux-arm64&label=nix-search-linux-arm64" | |
- name: release-linux-amd64 | |
run: | | |
ldflags=$(./scripts/golang-ldflags.sh) | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$ldflags" -o ./bin/nix-search-linux-amd64 ./cmd/nix-search | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "Content-Type: application/octet-stream" \ | |
--data-binary @bin/nix-search-linux-amd64 \ | |
"$upload_url?name=nix-search-linux-amd64&label=nix-search-linux-amd64" |