fix(mDNS): fix mDNS serving from computers with hostnames ending in .… #66
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@v4 | |
with: | |
go-version: '1.20' | |
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/localias-darwin-amd64 ./cmd/localias | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN}}" \ | |
-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) | |
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "$ldflags" -o ./bin/localias-darwin-arm64 ./cmd/localias | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-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) | |
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "$ldflags" -o ./bin/localias-linux-arm64 ./cmd/localias | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-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) | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$ldflags" -o ./bin/localias-linux-amd64 ./cmd/localias | |
upload_url=$(./scripts/upsert-gh-release.sh) | |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-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}" |