mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-04-22 10:52:13 +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:
|
stages:
|
||||||
- package
|
- package
|
||||||
|
- publish
|
||||||
|
|
||||||
package:
|
package:
|
||||||
stage: package
|
stage: package
|
||||||
@ -15,8 +16,17 @@ package:
|
|||||||
- node_modules/
|
- node_modules/
|
||||||
script:
|
script:
|
||||||
- vsce package
|
- vsce package
|
||||||
- ovsx publish code-stats-vscode-*.vsix -p $OPEN_VSX_TOKEN
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- code-stats-vscode-*.vsix
|
- 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