You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jackspirou d4f663cf8f using StringSlice instead of []string for Files 8 years ago
.drone.sec updating documentation for checksum usage 8 years ago
.drone.yml updating documentation for checksum usage 8 years ago
.gitignore updating documentation for checksum usage 8 years ago
DOCS.md using StringSlice instead of []string for Files 8 years ago
Dockerfile comments, cleanup, and some restructure 8 years ago
LICENSE Implemented initial version based on google/go-github 9 years ago
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 9 years ago
Makefile fix typo 8 years ago
README.md updating checksums to checksum and using drone.StringSlice instead of []string 8 years ago
checksum.go adding checksum options 8 years ago
logo.svg Implemented initial version based on google/go-github 9 years ago
main.go using StringSlice instead of []string for Files 8 years ago
types.go using StringSlice instead of []string for Files 8 years ago

README.md

drone-github-release

Build Status

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",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "api_key": "your_api_key",
        "files": [
            "dist/*.txt",
            "dist/other-file"
        ],
        "checksum": [
            "md5",
            "sha1",
            "sha256",
            "sha512",
            "adler32",
            "crc32"
        ]
    }
}
EOF

Docker

Build the Docker container using make:

make deps build docker

Example

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"
        ],
        "checksum": [
            "md5",
            "sha1",
            "sha256",
            "sha512",
            "adler32",
            "crc32"
        ]
    }
}
EOF