You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
685 B
27 lines
685 B
language: node_js |
|
node_js: |
|
- "8" |
|
before_script: |
|
- npm install |
|
script: npm test |
|
|
|
notifications: |
|
email: false |
|
|
|
before_deploy: |
|
- export RELEASE_TAG=$(git tag | tail -1) |
|
- mkdir -p hastic-grafana-app-$RELEASE_TAG |
|
- cp -r dist hastic-grafana-app-$RELEASE_TAG |
|
- tar -zxf hastic-grafana-app-$RELEASE_TAG hastic-grafana-app-$RELEASE_TAG.tar.gz |
|
- zip -r hastic-grafana-app-$RELEASE_TAG hastic-grafana-app-$RELEASE_TAG.zip |
|
|
|
deploy: |
|
provider: releases |
|
file: |
|
- "hastic-grafana-app-$RELEASE_TAG.zip" |
|
- "hastic-grafana-app-$RELEASE_TAG.tar.gz" |
|
email: ping@corpglory.com |
|
github-token: $GITHUB_TOKEN |
|
skip_cleanup: true |
|
on: |
|
tags: true
|
|
|