So, the gitea-release-plugin only works for tags. Oh well ...
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0957f0f1a4
commit
a807440e4d
2 changed files with 26 additions and 46 deletions
67
.drone.yml
67
.drone.yml
|
@ -15,49 +15,26 @@ steps:
|
|||
image: node:12
|
||||
commands:
|
||||
- npm run build:prod
|
||||
- name: pre-release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://gittr.ch/
|
||||
checksum:
|
||||
- md5
|
||||
- sha512
|
||||
draft: true
|
||||
files: dist/*
|
||||
note: README.md
|
||||
title: VERSION
|
||||
- name: update version
|
||||
image: node:12
|
||||
commands:
|
||||
- npm version prerelease
|
||||
when:
|
||||
branch: develop
|
||||
- name: test-release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://gittr.ch/
|
||||
checksum:
|
||||
- md5
|
||||
- sha512
|
||||
draft: true
|
||||
files: dist/*
|
||||
note: README.md
|
||||
prerelease: true
|
||||
title: VERSION
|
||||
when:
|
||||
branch: feature/*
|
||||
- name: release
|
||||
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
|
||||
branch:
|
||||
- develop
|
||||
- feature/*
|
||||
# - name: release
|
||||
# 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
|
||||
|
|
|
@ -26,7 +26,10 @@
|
|||
"start": "webpack-dev-server --open --config webpack.dev.js",
|
||||
"lint": "eslint --ext .ts src/",
|
||||
"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": {
|
||||
"jquery": "3.4.1",
|
||||
|
|
Loading…
Reference in a new issue