Giter VIP home page Giter VIP logo

Comments (9)

wangyoucao577 avatar wangyoucao577 commented on May 17, 2024 1

@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.

wangyoucao577 avatar wangyoucao577 commented on May 17, 2024

How frequent? Could you please also show me a little more context, i.e., more logs?

from go-release-action.

rsubr avatar rsubr commented on May 17, 2024

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.

wangyoucao577 avatar wangyoucao577 commented on May 17, 2024

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.

rsubr avatar rsubr commented on May 17, 2024

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.

ioogle avatar ioogle commented on May 17, 2024

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.

wangyoucao577 avatar wangyoucao577 commented on May 17, 2024

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.

wangyoucao577 avatar wangyoucao577 commented on May 17, 2024

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.

peschmae avatar peschmae commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.