From 7f2483e848e3aa5db83643513232bc1a44dbfe83 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Mon, 30 Dec 2019 17:16:37 -0800 Subject: [PATCH] chore: fix releases The GitHub release plugin doesn't allow directories, and has no way to tell it to ignore a path. The workaround is to be explicit about what files we want in a release. Signed-off-by: Andrew Rynhard --- .drone.yml | 14 +++++++++++++- hack/drone.jsonnet | 16 +++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d22e65cd5..a4c00c42c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3772,7 +3772,19 @@ steps: - sha512 draft: true files: - - _out/* + - _out/aws.tar.gz + - _out/azure.tar.gz + - _out/container.tar + - _out/digital-ocean.tar.gz + - _out/gcp.tar.gz + - _out/initramfs.xz + - _out/installer.tar + - _out/osctl-darwin-amd64 + - _out/osctl-linux-amd64 + - _out/talos.iso + - _out/vmware.ova + - _out/vmlinux + - _out/vmlinuz when: event: - tag diff --git a/hack/drone.jsonnet b/hack/drone.jsonnet index ff122893d..87fc6b1e6 100644 --- a/hack/drone.jsonnet +++ b/hack/drone.jsonnet @@ -400,7 +400,21 @@ local release = { settings: { api_key: { from_secret: 'github_token' }, draft: true, - files: ['_out/*'], + files: [ + '_out/aws.tar.gz', + '_out/azure.tar.gz', + '_out/container.tar', + '_out/digital-ocean.tar.gz', + '_out/gcp.tar.gz', + '_out/initramfs.xz', + '_out/installer.tar', + '_out/osctl-darwin-amd64', + '_out/osctl-linux-amd64', + '_out/talos.iso', + '_out/vmware.ova', + '_out/vmlinux', + '_out/vmlinuz', + ], checksum: ['sha256', 'sha512'], }, when: {