Skip to content

fix: install root certs correctly by changing how daemonization works… #69

fix: install root certs correctly by changing how daemonization works…

fix: install root certs correctly by changing how daemonization works… #69

Workflow file for this run

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.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/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"
- 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"
- 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"
- 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"