Comments (3)
Thanks for the pointer. I don't think I tried. But my main gripe is the useless error message. It should be better no matter what.
from ghr.
Fixed at #99
from ghr.
Hi @tcurdt,
Have you tried with -replace
or -recreate
options? Check the help page:
$ ghr -h
Usage: ghr [options...] TAG PATH
ghr is a tool to create Release on Github and upload your
artifacts to it. ghr parallelizes upload of multiple artifacts.
You must specify tag (e.g., v1.0.0) and PATH to local artifacts.
If PATH is directory, ghr globs all files in the directory and
upload it. If PATH is a file then, upload only it.
And you also must provide GitHub API token which has enough permission
(For a private repository you need the 'repo' scope and for a public
repository need 'public_repo' scope). You can get token from GitHub's
account setting page.
You can use ghr on GitHub Enterprise. Set base URL via GITHUB_API
environment variable.
Options:
-username, -u Github repository owner name. By default, ghr
extracts it from global gitconfig value.
-repository, -r GitHub repository name. By default, ghr extracts
repository name from current directory's .git/config.
-token, -t GitHub API Token. By default, ghr reads it from
'GITHUB_TOKEN' env var.
-parallel=-1 Parallelization factor. This option limits amount
of parallelism of uploading. By default, ghr uses
number of logic CPU.
-recreate Recreate release if it already exists. If want to
upload to same release and replace use '-replace'.
-replace Replace artifacts if it is already uploaded. ghr
thinks it's same when local artifact base name
and uploaded file name are same.
from ghr.
Related Issues (20)
- Ability to pass a Markdown file as body HOT 2
- Releases with no files should be allowed HOT 1
- Misleading action title in Github Marketplace
- Add env variable support inside option values ... HOT 1
- Release with -b attribute not working with html messages HOT 2
- Invalid argument: you must set TAG and PATH name. HOT 12
- Tests failing HOT 2
- -body ignored when -replace is used
- Does not works with GitHub Actions HOT 4
- Missing definition for 'name' HOT 1
- FreeBSD HOT 1
- failed to find assets (circleci) HOT 2
- Is the project abandoned? HOT 2
- Migrate from travis-ci.org to travis-ci.com due to shutdown of service
- Invalid number of arguments: you must set a git TAG and optionally a PATH. HOT 1
- -n optional param is not working HOT 2
- Update go-github to support generate-notes HOT 1
- Latest release, cannot find package HOT 2
- not uploading the path it is told to upload. seems to ignore it. HOT 1
- v0.16.1 has build/link issues, does not run on Debian or Red Hat
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 ghr.