From 6f4e571b0517790f2904dd819a3ec9729542370b Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sun, 24 Sep 2023 21:34:32 +0300 Subject: [PATCH] Attach binaries to releases --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d009a02..d42a494 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-go@v4 with: go-version: "1.20" - - run: go build -o bin/${{ matrix.arch }}/ ./cmd/containerd-shim-rund-v1.go + - run: go build -o bin/containerd-shim-rund-v1-${{ matrix.arch }} ./cmd/containerd-shim-rund-v1.go env: GOOS: darwin GOARCH: ${{ matrix.arch }} @@ -29,3 +29,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 }}