Allan Odgaard
720f9eac98
Expect more than just {?name} in GitHub’s URI template
...
Currently GitHub supports both name and label parameters.
2015-10-03 17:33:21 +07:00
Allan Odgaard
e92759af78
Ensure we create signature before uploading file
...
This is so that we do not upload anything if signature creation fails.
2014-10-03 21:49:13 +02:00
Allan Odgaard
f2387d8d23
Workaround for ruby 2.0 warning (shadowing outer local variable)
2014-07-06 22:42:00 +02:00
Allan Odgaard
cb775822aa
Use current ruby (rather than 1.8) for a few helper scripts
2014-06-28 17:42:23 +02:00
Allan Odgaard
2134e957e6
Display progress during upload (ninja 1.5)
2014-04-18 06:40:48 +07:00
Allan Odgaard
3aa383a166
GitHub releases API is no longer in preview
2014-02-14 13:35:54 +07:00
Allan Odgaard
885325e992
Use netrc for GitHub credentials
...
This changes the authentication mechanism from passing an authorization token / API key to using basic auth. Basic auth didn’t work when I initially tested the upload API, but hopefully GitHub has since added it (I did request it, but didn’t get a reply, so no idea if the omission was an oversight or by design).
2013-12-13 18:39:24 +07:00
Allan Odgaard
1293828e79
Upload to existing release if it already exists
...
Creating a release with attachment is non-atomic in that the release is first created and then we upload to that release but our build file has it as a single action, so this action should be able to handle partial success from a previous execution.
2013-12-12 14:11:26 +07:00
Allan Odgaard
9a017f97ff
Use GitHub’s (preliminary) API for uploading releases
2013-12-01 14:56:48 +07:00
Allan Odgaard
bc7cbffb0c
Add -t/--tag option to bin/upload
...
Presently unused but mandatory.
2013-12-01 14:49:25 +07:00
Allan Odgaard
f80794e3b0
Update shebang to explicitly call ruby 1.8
2013-12-01 14:46:43 +07:00
Allan Odgaard
6e4b305587
fixup! Cleanup a failed GitHub upload
2013-05-02 16:13:33 +07:00
Allan Odgaard
be83c7d91d
Cleanup a failed GitHub upload
...
This might be moot given that the API should have been disabled by now.
2013-04-10 21:47:35 +07:00
Allan Odgaard
a1b9c305da
Move version knowledge outside upload script
2013-02-18 16:11:12 +01:00
Allan Odgaard
d737efd7e1
Generalize bin/upload
...
It now takes key path and destination (github repostiory) as arguments. The generated build.ninja assumes the user local build.ninja sets these variables.
2012-08-20 15:44:47 +02:00
Allan Odgaard
7f68e1a8e5
Download URL now taken from the GitHub response
...
Previously it was based on a hardcoded URL template. This also adds an extra check on the GitHub response, to see if we actually got a URL back.
2012-08-18 15:30:23 +02:00
Allan Odgaard
2ac005815b
Upload to GitHub instead of S3.
...
Technically GitHub is backed by S3 (shielded by a CDN), but now all releases also go to the Downloads section of GitHub.
2012-08-10 18:30:35 +02:00
Allan Odgaard
9894969e67
Initial commit
2012-08-09 16:25:56 +02:00