From abb4e1633a20906ddf67c0c7f7026f26f36333b0 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 29 Mar 2021 13:32:00 -0500 Subject: [PATCH] Drone config include tag events --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2f45e82..27fc22a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,40 @@ steps: commands: - pnpm i - pnpm build - - tar czf build.tar.gz lib + - mkdir artifacts + - tar czf artifacts/extollo-cli.tar.gz lib + + - name: create Gitea release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + base_url: https://code.garrettmills.dev + checksum: md5 + title: ${DRONE_TAG} + files: "artifacts/*" + when: + event: tag + status: success + + - name: prepare NPM release + image: glmdev/node-pnpm:latest + commands: + - rm -rf artifacts + when: + event: tag + status: success + + - name: create NPM release + image: plugins/npm + settings: + username: extollo_bot + password: + from_secret: npm_password + email: extollo@garrettmills.dev + when: + event: tag + status: success - name: send build success notifications image: plugins/webhook @@ -90,6 +123,4 @@ steps: - Extollo/docs@master when: status: success - event: - exclude: - - pull_request + event: tag