diff --git a/.goreleaser.yml b/.goreleaser.yml index 7f6b6b9..f88ca00 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,16 +1,26 @@ -project_name: gh +project_name: actions/actions-sync builds: - - <<: &build_defaults - binary: bin/actions-sync - id: macos - goos: [darwin] - goarch: [amd64, arm64] - - <<: *build_defaults - id: linux - goos: [linux] - goarch: [amd64, arm64] - - <<: *build_defaults - id: windows - goos: [windows] - goarch: [amd64] + - id: build + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + binary: bin/actions-sync + ignore: + - goos: windows + goarch: arm64 + env: + - CGO_ENABLED=0 +release: + github: + owner: actions + name: actions-sync + # Create the release as a draft so it can be tested before being published + # To test, go to the Actions tab and run the "Actions Sync E2E Sanity Test" workflow + draft: true + + diff --git a/script/build b/script/build index 4f8ff95..4987ff3 100755 --- a/script/build +++ b/script/build @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || { set -x } -go build -o bin/actions-sync main.go \ No newline at end of file +CGO_ENABLED=0 go build -o bin/actions-sync main.go