on:
push:
tags:
- "v*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: |
make clean
make build
zip -r build.zip ./build
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: build.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
У меня такой yaml есть, ни черта не работает. Хочу готовые бинарники, засунуть в архив и добавить его к релизу. В логах сборки:
https://uploads.github.com/repos/tz4678/scan-tools/releases/null/assets?name=build.zip
curl: (22) The requested URL returned error: 400 Bad Request