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 }}