From 22e622e7fab442b763e35fd9764121f8fe46111e Mon Sep 17 00:00:00 2001 From: EndMove Date: Wed, 28 Jun 2023 13:22:55 +0200 Subject: [PATCH] up --- .drone.yml | 18 +++++++++++++++--- VERSION | 1 - 2 files changed, 15 insertions(+), 4 deletions(-) delete mode 100644 VERSION diff --git a/.drone.yml b/.drone.yml index d237ca0..118acfb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,10 +49,22 @@ steps: CHANGE: ${CHANGE} commands: - git fetch --tags - - OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0" - - echo $CHANGE - npm ci + - echo $CHANGE - npm version $CHANGE - git push --set-upstream origin `git name-rev --name-only HEAD` + - export VERSION=$(node -p "require('./package.json').version") || echo "1.0.0" + - echo $VERSION - npm publish - # - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot + - name: gitea-release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_api_key + base_url: https://git.endmove.eu + title: Release ${VERSION} + notes: 'See the commits diff for more informations' + checksum: + - md5 + - sha1 + - sha256 diff --git a/VERSION b/VERSION deleted file mode 100644 index afaf360..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.0.0 \ No newline at end of file