updating documentation for checksum usage
This commit is contained in:
parent
f7b84f7407
commit
0922e8ea4c
@ -1 +1 @@
|
|||||||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.ENVLhyifwZ-n9nN_8SKGRRI-esqsXjSfnFmzEAazMFeBWhDln0IXi3EAPGpJUmT9kkqXIqtqUgQ9H_nh2y274RrBcUs2Ch9E4f1wDYHgbenG1b8AkJWED4g5bre-r0huxuq2LhW9UutiZU17Zz7An0U9IKhucGtPAgBd7NIZjR0b2ioUp_jMkrOBnXvKuxzeYjDC2p0m8yvIRKahtlRPhQRvh8raXV890PZuH4vGJOpDymAiX1jZJLMSjN1ODj5U100RLugfIQUKi8b4aCas0hHHSQJcxnZgWDkVZEFiJct-VcWPUahUW99ogyH7v5dwjxIe9GeGHfr0ZO0KL8MxYg.se4-CBJA0XtQYbPO.arFXgGSOO_-UKMx5UnqozPEOkZEuOJyTQkJX9gpoyMeeK22bDJfpi9fl99K9aKRfrOeo37JHpkIyDfqWLo0548G73KaH7WK4U8gTHN6RvwsAvtP6UY3eUgJeQaC1F6zSz0N2tyr0SiH6NxeLNsIzFrUtLXi1kN_ocSUwWgnLEQROw_h9MiH_YWlRt6cB4Gpljs1HF9-g.V6GluvSUzQGIiqJSHXVoLQ
|
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.R-s00gRELUNOzcRuOcoVhqltGWZKP3xQyM-WCqyszETHKr2OVBtN6dfYEEYv1jB5a_4SUs3WDJsjdXieeQsL5sWiDwSzS8cjCeLF3J0XjgmwaPL2EiJn78yHcSOfV-YhHL6fM2zdxKKKgATlKLPGyi6p-O2saL-knl3gnKnO13-ZDWoVIsYVyklFH8UscVEwI4kthGP6rFGLZon46HePvrUxdBcczBZmuqQLGxXmFBr93cX2eJ6QK8K4j6pZwtC5q8ZcrnXwwOoJW_UjZugKuzEHcS_DX_59vb5oJ1MdWhdb8Sm5MBs7nYjRpx900KZzqxG8jzQYuo5PsH4r819GeQ.1BShEZlbixdfZWJB.PuIVYaAJEsbvhqcqTQD7FLQvFDscDvQLorCq7-Gh0LoZBO-5N3XIJVtcEtetW2Dqs6srNhYwEDqryqVp7O3MHlesSuPNy8ulGjCziuqPa5qmCI2ds6gv19RAtXpzot-UobDERID0W9CfL4ZeaiW1AKQmxB52jgNnmTZ3Gqbad4ZPIKBu5BvkIPtAOmbWu7I2SKFvyp8PzD9BMfH_k-Y3_y1f0hrvFYIcl3iuL7z0LW0OAot3aLfeGSuct65Zp5qZuXdUCTCDqYInNPjIcMczZkh3GOKtSm2grRKeEE3ub1_Kmyiw_F8CWGdlYXtOXM47Y9wxmQsKuQFT1WffUW3qdJCXTMvg3ILXJ5AzeuLcX1UkD4cPYg0AfqEEaLAee_0Btfoxpg.Ai8KGIEtc3W1h_vTAZahgg
|
||||||
|
@ -7,10 +7,10 @@ build:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
docker:
|
docker:
|
||||||
username: jackspirou
|
username: drone
|
||||||
password: $$DOCKER_PASS
|
password: $$DOCKER_PASS
|
||||||
email: $$DOCKER_EMAIL
|
email: $$DOCKER_EMAIL
|
||||||
repo: jackspirou/drone-github-release
|
repo: plugins/drone-github-release
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ plugin:
|
|||||||
name: GitHub Release
|
name: GitHub Release
|
||||||
desc: Publishs files and artifacts to GitHub Releases
|
desc: Publishs files and artifacts to GitHub Releases
|
||||||
type: publish
|
type: publish
|
||||||
image: jackspirou/drone-github-release
|
image: plugins/drone-github-release
|
||||||
labels:
|
labels:
|
||||||
- github
|
- github
|
||||||
- release
|
- release
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,4 +24,3 @@ _testmain.go
|
|||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
drone-github-release
|
drone-github-release
|
||||||
secrets.yml
|
|
||||||
|
8
DOCS.md
8
DOCS.md
@ -3,6 +3,7 @@ can override the default configuration with the following parameters:
|
|||||||
|
|
||||||
* `api_key` - GitHub oauth token with public_repo or repo permission
|
* `api_key` - GitHub oauth token with public_repo or repo permission
|
||||||
* `files` - Files to upload to GitHub Release, globs are allowed
|
* `files` - Files to upload to GitHub Release, globs are allowed
|
||||||
|
* `checksums` - Checksum hashes to include in your GitHub release for all files specified. Supported hash methods include md5, sha1, sha256, sha512, adler32, and crc32.
|
||||||
* `base_url` - GitHub base URL, only required for GHE
|
* `base_url` - GitHub base URL, only required for GHE
|
||||||
* `upload_url` - GitHub upload URL, only required for GHE
|
* `upload_url` - GitHub upload URL, only required for GHE
|
||||||
|
|
||||||
@ -14,4 +15,11 @@ publish:
|
|||||||
api_key: my_github_api_key
|
api_key: my_github_api_key
|
||||||
files:
|
files:
|
||||||
- dist/*
|
- dist/*
|
||||||
|
checksums:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
- sha512
|
||||||
|
- adler32
|
||||||
|
- crc32
|
||||||
```
|
```
|
||||||
|
2
Makefile
2
Makefile
@ -22,4 +22,4 @@ build:
|
|||||||
go build -ldflags '-s -w $(LDFLAGS)'
|
go build -ldflags '-s -w $(LDFLAGS)'
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
docker build --rm=true -t jackspirou/drone-github-release .
|
docker build --rm=true -t drone/drone-github-release .
|
||||||
|
16
README.md
16
README.md
@ -31,6 +31,14 @@ Drone plugin for publishing GitHub releases
|
|||||||
"files": [
|
"files": [
|
||||||
"dist/*.txt",
|
"dist/*.txt",
|
||||||
"dist/other-file"
|
"dist/other-file"
|
||||||
|
],
|
||||||
|
"checksums": [
|
||||||
|
"md5",
|
||||||
|
"sha1",
|
||||||
|
"sha256",
|
||||||
|
"sha512",
|
||||||
|
"adler32",
|
||||||
|
"crc32"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,6 +79,14 @@ docker run -i plugins/drone-github-release <<EOF
|
|||||||
"files": [
|
"files": [
|
||||||
"dist/*.txt",
|
"dist/*.txt",
|
||||||
"dist/other-file"
|
"dist/other-file"
|
||||||
|
],
|
||||||
|
"checksums": [
|
||||||
|
"md5",
|
||||||
|
"sha1",
|
||||||
|
"sha256",
|
||||||
|
"sha512",
|
||||||
|
"adler32",
|
||||||
|
"crc32"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user