From 778ddfb277fc0f16617d8aa92482859638032c5e Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 10 May 2023 18:55:03 +0300 Subject: [PATCH] github: automatically attach binaries to the release Close #3001. Signed-off-by: Anna Shaleva --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c062c509f..e453dd35a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,6 +76,12 @@ jobs: path: ./bin/neo-go* if-no-files-found: error + - name: Attach binary to the release as an asset + if: ${{ github.event_name == 'release' }} + run: gh release upload ${{ github.event.release.tag_name }} ./bin/neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}${{ (matrix.os.bin-name == 'windows' && '.exe') || '' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build_image: needs: build_cli name: Build and push docker image