Skip to content

Commit f701a1e

Browse files
committed
Attach binaries to releases
Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
1 parent 2c9a802 commit f701a1e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/macos.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ jobs:
1515
- uses: actions/setup-go@v2
1616
with:
1717
go-version: "1.20"
18-
- run: go build -o bin/${{ matrix.arch }}/ ./cmd/containerd ./cmd/ctr
18+
- run: |
19+
go build -o bin/containerd-${{ matrix.arch }} ./cmd/containerd
20+
go build -o bin/ctr-${{ matrix.arch }} ./cmd/ctr
1921
env:
2022
GOOS: darwin
2123
GOARCH: ${{ matrix.arch }}
2224
- uses: actions/upload-artifact@v3
2325
with:
2426
name: ${{ matrix.arch }}
2527
path: bin/*
28+
- uses: softprops/action-gh-release@v1
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
files: bin/*
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)