mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-04-22 02:42:11 +00:00
add a publish stage on tags
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
3be85e6459
commit
aa710e7f28
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user