0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-21 12:40:38 +00:00

add checksum file generation

This commit is contained in:
Robert Kaussow 2020-01-15 13:12:32 +01:00
parent 011b2f371c
commit b3d29f3f85
3 changed files with 24 additions and 1 deletions

View File

@ -177,6 +177,14 @@ def binaries(arch):
'ls -lah release/'
]
},
{
'name': 'checksum',
'image': 'alpine',
'commands': [
'cd release/ && sha256sum * > sha256sum.txt',
'cat sha256sum.txt'
],
},
{
'name': 'publish',
'image': 'plugins/github-release',
@ -185,6 +193,7 @@ def binaries(arch):
'api_key': {
'from_secret': 'github_token'
},
'files': [ "release/*" ],
'title': '${DRONE_TAG}',
'note': 'CHANGELOG.md',
},

View File

@ -250,11 +250,19 @@ steps:
environment:
BUILD_VERSION: ${DRONE_TAG##v}
- name: checksum
image: alpine
commands:
- cd release/ && sha256sum * > sha256sum.txt
- cat sha256sum.txt
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- release/*
note: CHANGELOG.md
overwrite: true
title: ${DRONE_TAG}
@ -345,6 +353,6 @@ depends_on:
---
kind: signature
hmac: 4c60720bd47e885df1e36d84a68edb5e4fb4f9030113a52dda16b37a7da11f85
hmac: dfd7579768ef56661e69f51498b32a2cedc72869c01876711963f7f9b8d76fc4
...

View File

@ -0,0 +1,6 @@
- FEATURE
- add env variable `GITHUB_REPOS`
- add env variable `IGNORE_PRE`
- INTERNAL
- provide also binary releases
- switch to gomod instead of vendor folder