So, the gitea-release-plugin only works for tags. Oh well ...
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Manuel Friedli 2019-05-10 23:29:30 +02:00
parent 0957f0f1a4
commit a807440e4d
2 changed files with 26 additions and 46 deletions

View file

@ -15,49 +15,26 @@ steps:
image: node:12 image: node:12
commands: commands:
- npm run build:prod - npm run build:prod
- name: pre-release - name: update version
image: plugins/gitea-release image: node:12
settings: commands:
api_key: - npm version prerelease
from_secret: gitea_token
base_url: https://gittr.ch/
checksum:
- md5
- sha512
draft: true
files: dist/*
note: README.md
title: VERSION
when: when:
branch: develop branch:
- name: test-release - develop
image: plugins/gitea-release - feature/*
settings: # - name: release
api_key: # image: plugins/gitea-release
from_secret: gitea_token # settings:
base_url: https://gittr.ch/ # api_key:
checksum: # from_secret: gitea_token
- md5 # base_url: https://gittr.ch/
- sha512 # checksum:
draft: true # - md5
files: dist/* # - sha512
note: README.md # files: dist/*
prerelease: true # file_exists: fail
title: VERSION # note: README.md
when: # title: VERSION
branch: feature/* # when:
- name: release # event: tag
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gittr.ch/
checksum:
- md5
- sha512
files: dist/*
file_exists: fail
note: README.md
title: VERSION
when:
event: tag

View file

@ -26,7 +26,10 @@
"start": "webpack-dev-server --open --config webpack.dev.js", "start": "webpack-dev-server --open --config webpack.dev.js",
"lint": "eslint --ext .ts src/", "lint": "eslint --ext .ts src/",
"build": "webpack --mode development --env development --config webpack.dev.js", "build": "webpack --mode development --env development --config webpack.dev.js",
"build:prod": "webpack -p --mode production --env production --config webpack.prod.js" "build:prod": "webpack -p --mode production --env production --config webpack.prod.js",
"preversion": "echo npm test",
"version": "npm run build:prod && echo $npm_package_version > VERSION && git add -A .",
"postversion": "git push && git push --tags"
}, },
"dependencies": { "dependencies": {
"jquery": "3.4.1", "jquery": "3.4.1",