diff --git a/.drone.star b/.drone.star index 6f609f3..8da71f5 100644 --- a/.drone.star +++ b/.drone.star @@ -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', }, diff --git a/.drone.yml b/.drone.yml index 34c5782..642198f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ... diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..3472972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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