Comments (9)
@ioogle @peschmae The branch will be removed soon, please switch to the new release wangyoucao577/[email protected]
which has solved the problem!
from go-release-action.
How frequent? Could you please also show me a little more context, i.e., more logs?
from go-release-action.
I'm getting a different error from the github-assets-uploader
while running my release.yml and all the builds fail.
+ github-assets-uploader -f onerror-master-linux-amd64.tar.gz -mediatype application/gzip -repo rsubr/onerror -token *** -tag master
Post "https://uploads.github.com/repos/rsubr/onerror/releases/52562171/assets?name=onerror-master-linux-amd64.tar.gz": http2: Transport: cannot retry err [stream error: stream ID 1; REFUSED_STREAM] after Request.Body was written; define Request.GetBody to avoid this error
Do you need more logs?
from go-release-action.
I'm getting a different error from the
github-assets-uploader
while running my release.yml and all the builds fail.+ github-assets-uploader -f onerror-master-linux-amd64.tar.gz -mediatype application/gzip -repo rsubr/onerror -token *** -tag master Post "https://uploads.github.com/repos/rsubr/onerror/releases/52562171/assets?name=onerror-master-linux-amd64.tar.gz": http2: Transport: cannot retry err [stream error: stream ID 1; REFUSED_STREAM] after Request.Body was written; define Request.GetBody to avoid this error
Do you need more logs?
You're manually run the action, right? Please remove workflow_dispatch
and only trigger it by create_release
. If you really want to run it manully, you have to set up some more parameters, e.g., where to upload the asset.
from go-release-action.
You're manually run the action, right?
You're correct! The release trigger built the binaries and uploaded them successfully. The manual run failed.
It would be great if you could please improve the documentation so it's easy for new users like myself.
Thanks for the great work :-)
from go-release-action.
How frequent? Could you please also show me a little more context, i.e., more logs?
Hi youcao, sorry for the late reply, its almost 3/4. The yml file is:
name: Release Go Binaries
on:
release:
types: [created]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-18.04
env:
GOPRIVATE: github.com/ioogle
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set BUILD_TIME env
run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV}
- name: Environment Printer
uses: managedkaos/[email protected]
- name: Build Go Binary (warehouse-api)
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/api"
binary_name: "warehouse-api"
pre_command: "cd ./warehouse; git config --global url.\"https://ioogle:${{ secrets.ACCESS_TOKEN }}@github.com\".insteadOf \"https://github.com\"; go mod download"
ldflags: -X "main.appVersion=${{ github.event.release.tag_name }}" -X "main.buildTime=${{ env.BUILD_TIME }}" -X main.gitCommit=${{ github.sha }} -X main.gitRef=${{ github.ref }}
asset_name: warehouse-api-${{ github.event.release.tag_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
from go-release-action.
The error you encounterred seems very similar with cli/cli#3252 and google/go-github#2113.
The github-assets-uploader
simply use the https://github.com/google/go-github package to upload the assets, see https://github.com/wangyoucao577/assets-uploader/blob/48033b96b1cc24addb1dd0dad857897c88451e60/cmd/github-assets-uploader/main.go#L83.
Maybe I can retry several times if nothing else can be improved.
How big is your asset? Are you run it on your self-hosted runner? Or uses Github hosted runner? I saw you're using ubuntu-18.04
, maybe you can switch to ubuntu-latest
. Also, please remove the workflow_dispatch
either.
from go-release-action.
I made a branch that upgrades underlying github package. If it caused by Github's issue, it maybe helpful. Could you please help to have a try? wangyoucao577/go-release-action@bugfix/upload-fail
. Thanks!
from go-release-action.
I made a branch that upgrades underlying github package. If it caused by Github's issue, it maybe helpful. Could you please help to have a try?
wangyoucao577/go-release-action@bugfix/upload-fail
. Thanks!
This branch, solved the issue for me
from go-release-action.
Related Issues (20)
- README should include required Github permissions HOT 2
- Binary release failing due to outdated Debian version HOT 2
- Location of go get modules for cache purposes HOT 1
- pkg-config: exec: "pkg-config": executable file not found in $PATH HOT 4
- how to `strip` the produced binary ? HOT 4
- apt-get install pkg via pre_command fail HOT 2
- go.dev/VERSION format seems to have changed breaking this action
- Error: Name or service not known HOT 3
- Error when running `go build`
- Failed to get vcs information
- Issues with fetching latest go binary
- Unable to download latest Go version HOT 2
- Doubt: this action works when the tag is created by another actions? HOT 1
- Resolution issue HOT 3
- Is there a demo that builds multiple binaries and packages them together? HOT 2
- Exclude some os/arch combinations from upx HOT 5
- build constraints exclude all Go files HOT 2
- cross-compilations to mac failed because clang not found HOT 3
- Downloaded go source is not cleaned up - repository reports "dirty"
- goversion 1.21 failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-release-action.