diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 902c774e6d114..ca456981764ad 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -15,7 +15,9 @@ jobs: - uses: actions/setup-go@v2 with: go-version: "1.20" - - run: go build -o bin/${{ matrix.arch }}/ ./cmd/buildctl ./cmd/buildkitd + - run: | + go build -o bin/buildctl-${{ matrix.arch }}/ ./cmd/buildctl + go build -o bin/buildkitd-${{ matrix.arch }}/ ./cmd/buildkitd env: GOOS: darwin GOARCH: ${{ matrix.arch }} @@ -23,3 +25,9 @@ jobs: with: name: ${{ matrix.arch }} path: bin/* + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: bin/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}