fix(ci): Fix publish pipeline
continuous-integration/drone/push Build is passing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-12-28 16:18:08 +01:00
parent 24d9cb24be
commit e1cb538eb8
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 14 additions and 49 deletions

View File

@ -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/imagebot-%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',
],
},
],
};