From 40a4fb02252a3ea0ab88a38e8e8181b220d1a61c Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Wed, 28 Dec 2022 16:18:06 +0100 Subject: [PATCH] fix(ci): Fix publish pipeline Signed-off-by: Sam Therapy --- .drone.jsonnet | 63 +++++++++++--------------------------------------- 1 file changed, 14 insertions(+), 49 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index f6b8553..20b3219 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -65,55 +65,20 @@ local release(arch) = { 'pnpm i', 'pnpm build', ], - // }, - // { - // name: 'package', - // image: 'node:lts', - // commands: ( - // if arch == 'arm64' then - // [ - // 'wget "https://github.com/ProcursusTeam/ldid/releases/download/v2.1.5-procursus2/ldid_linux_aarch64" -O /usr/local/bin/ldid', - // 'chmod +x /usr/local/bin/ldid', - // ] else [] - // ) + [ - // 'npm run package -- -t latest-linux-%s,latest-alpine-%s,latest-macos-%s,latest-win-%s -o dist/bin/feditoken-%s' % [arch, arch, arch, arch, arch], - // 'xz -9 dist/bin/*', - // ], - // depends_on: [ - // 'build', - // ], - // }, - // { - // name: 'release', - // image: 'plugins/gitea-release', - // settings: { - // api_key: { - // from_secret: 'release_api_key', - // }, - // base_url: 'https://git.froth.zone', - // files: [ - // 'dist/bin/*', - // ], - // }, - // depends_on: [ - // 'package', - // ], - } + - (if arch == 'amd64' then - { - name: 'publish', - image: 'plugins/npm', - settings: { - token: { - from_secret: 'release_api_key', - }, - registry: 'https://git.froth.zone/api/packages/sam/npm/', - }, - depends_on: [ - 'build', - ], - } - else {}), + }, + { + name: 'publish', + image: 'plugins/npm', + settings: { + token: { + from_secret: 'release_api_key', + }, + registry: 'https://git.froth.zone/api/packages/sam/npm/', + }, + depends_on: [ + 'build', + ], + }, ], };