add a publish stage on tags

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-07-10 15:43:39 +02:00
parent 3be85e6459
commit aa710e7f28
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6

View File

@ -2,6 +2,7 @@ image: node:10-alpine
stages:
- package
- publish
package:
stage: package
@ -15,8 +16,17 @@ package:
- node_modules/
script:
- vsce package
- ovsx publish code-stats-vscode-*.vsix -p $OPEN_VSX_TOKEN
artifacts:
paths:
- code-stats-vscode-*.vsix
publish:
stage: publish
needs:
- package
only:
- tags
before_script:
- npm install -g ovsx
script:
- ovsx publish code-stats-vscode-*.vsix -p $OPEN_VSX_TOKEN