Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error upload-release-asset and also it is deprecated #61

Closed
hmert opened this issue Oct 24, 2021 · 4 comments
Closed

Got error upload-release-asset and also it is deprecated #61

hmert opened this issue Oct 24, 2021 · 4 comments

Comments

@hmert
Copy link

hmert commented Oct 24, 2021

I've have following error, how I could set tag.

github-assets-uploader -f mono-linux-amd64.tar.gz -mediatype application/gzip -repo monopayments/mono -token -tag main
tag is mandatory but not set
@wangyoucao577
Copy link
Owner

The tag is the Git tag to identify a Github Release in repo, main is not a valid tag. Are you using push event instead of create_release to trigger the action?

@hmert
Copy link
Author

hmert commented Oct 24, 2021

on:
  push:
    tags:
      - '*'
...

    - uses: wangyoucao577/go-release-action@v1.20
      with:
        goos: ${{ matrix.goos }}
        pre_command: export CGO_ENABLED=0 
        project_path: "."
        release_tag: main
        binary_name: "mono"

Here is my config.

@wangyoucao577
Copy link
Owner

Use

on: 
  release:
    types: [created]

instead, and remove the release_tag: main.

@hmert
Copy link
Author

hmert commented Oct 25, 2021

Thank you.

@hmert hmert closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants