2015-11-17 18:17:16 +00:00
# drone-github-release
2015-11-23 00:07:57 +00:00
2015-12-23 14:17:14 +00:00
[![Build Status ](http://beta.drone.io/api/badges/drone-plugins/drone-github-release/status.svg )](http://beta.drone.io/drone-plugins/drone-github-release)
[![ ](https://badge.imagelayers.io/plugins/drone-github-release:latest.svg )](https://imagelayers.io/?images=plugins/drone-github-release:latest 'Get your own badge on imagelayers.io')
2015-11-23 00:07:57 +00:00
Drone plugin for publishing GitHub releases
## Usage
```
./drone-github-release < < EOF
{
"repo": {
"clone_url": "git://github.com/drone/drone",
"full_name": "drone/drone",
"owner": "drone",
"name": "drone"
},
"build": {
"event": "tag",
"branch": "refs/heads/v0.0.1",
"commit": "8f5d3b2ce38562bedb48b798328f5bb2e4077a2f",
"ref": "refs/heads/v0.0.1"
},
"workspace": {
"root": "/drone/src",
2015-12-23 14:17:14 +00:00
"path": "/drone/src/github.com/drone/drone"
2015-11-23 00:07:57 +00:00
},
"vargs": {
"api_key": "your_api_key",
"files": [
"dist/*.txt",
"dist/other-file"
2016-01-15 17:29:12 +00:00
],
2016-01-15 21:30:59 +00:00
"checksum": [
2016-01-15 17:29:12 +00:00
"md5",
"sha1",
"sha256",
"sha512",
"adler32",
"crc32"
2015-11-23 00:07:57 +00:00
]
}
}
EOF
```
## Docker
2015-12-23 14:17:14 +00:00
Build the Docker container using `make` :
2015-11-23 00:07:57 +00:00
```
2015-12-23 14:17:14 +00:00
make deps build docker
```
### Example
```sh
docker run -i plugins/drone-github-release < < EOF
{
"repo": {
"clone_url": "git://github.com/drone/drone",
"full_name": "drone/drone",
"owner": "drone",
"name": "drone"
},
"build": {
"event": "tag",
"branch": "refs/heads/v0.0.1",
"commit": "8f5d3b2ce38562bedb48b798328f5bb2e4077a2f",
"ref": "refs/heads/v0.0.1"
},
"workspace": {
"root": "/drone/src",
"path": "/drone/src/github.com/drone/drone"
},
"vargs": {
"api_key": "your_api_key",
"files": [
"dist/*.txt",
"dist/other-file"
2016-01-15 17:29:12 +00:00
],
2016-01-15 21:30:59 +00:00
"checksum": [
2016-01-15 17:29:12 +00:00
"md5",
"sha1",
"sha256",
"sha512",
"adler32",
"crc32"
2015-12-23 14:17:14 +00:00
]
}
}
EOF
2015-11-23 00:07:57 +00:00
```