chore(project): automatically update demo with every release
This commit is contained in:
parent
98397ac172
commit
1fe1dfbd59
|
@ -15,6 +15,8 @@ jobs:
|
||||||
script: './tasks/stages/update-integration-test'
|
script: './tasks/stages/update-integration-test'
|
||||||
- stage: update examples
|
- stage: update examples
|
||||||
script: './tasks/stages/update-examples'
|
script: './tasks/stages/update-examples'
|
||||||
|
- stage: update demo
|
||||||
|
script: './tasks/stages/update-demo'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
@ -22,3 +24,5 @@ stages:
|
||||||
if: tag =~ ^v\d
|
if: tag =~ ^v\d
|
||||||
- name: update examples
|
- name: update examples
|
||||||
if: tag =~ ^v\d
|
if: tag =~ ^v\d
|
||||||
|
- name: update demo
|
||||||
|
if: tag =~ ^v\d
|
|
@ -0,0 +1,28 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
# bumps bpmn-js and diagram-js dependencies in bpmn-io-demo
|
||||||
|
|
||||||
|
PWD="$(pwd)"
|
||||||
|
WORKDIR="$(pwd)/tmp"
|
||||||
|
CLONE_DIR="$WORKDIR/bpmn-io-demo"
|
||||||
|
|
||||||
|
# create work dir
|
||||||
|
mkdir -p "$WORKDIR"
|
||||||
|
|
||||||
|
git clone --depth=1 https://github.com/$BPMN_IO_DEMO_ENDPOINT.git "$CLONE_DIR"
|
||||||
|
|
||||||
|
cd "$CLONE_DIR"
|
||||||
|
|
||||||
|
npm install --save bpmn-js@latest diagram-js@latest
|
||||||
|
|
||||||
|
git config user.email "$BPMN_IO_EMAIL"
|
||||||
|
git config user.name "$BPMN_IO_USERNAME"
|
||||||
|
git config push.default simple
|
||||||
|
|
||||||
|
git add -A
|
||||||
|
git commit -m "chore(project): bump bpmn-js to $TRAVIS_TAG"
|
||||||
|
git tag "bpmn-js-$TRAVIS_TAG"
|
||||||
|
git push -q "https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" &2>/dev/null
|
||||||
|
git push --tags -q "https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" &2>/dev/null
|
||||||
|
|
||||||
|
cd "$PWD"
|
Loading…
Reference in New Issue