mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
CI/CD allow a Travis cron job to create beta and update children proj… (#5033)
* CI/CD allow a Travis cron job to create beta and update children projects * Update build.sh
This commit is contained in:
committed by
Eugenio Romano
parent
24e1794fb9
commit
ac28b959ee
@@ -14,7 +14,12 @@ then
|
||||
|
||||
if [[ $TRAVIS_BRANCH == "development" ]];
|
||||
then
|
||||
./scripts/update-version.sh -gnu -nextalpha || exit 1;
|
||||
NEXT_VERSION=-nextalpha
|
||||
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||
then
|
||||
NEXT_VERSION=-nextbeta
|
||||
fi
|
||||
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
|
||||
fi
|
||||
|
||||
node ./scripts/pre-publish.js
|
||||
|
9
scripts/travis/release/git-tag-beta.sh
Executable file
9
scripts/travis/release/git-tag-beta.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||
|
||||
echo "git tag -a ${VERSION} -m ${VERSION}"
|
||||
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||
git remote rm origin
|
||||
git remote add origin 'git@github.com:Alfresco/alfresco-ng2-components.git'
|
||||
git push origin --tags
|
Reference in New Issue
Block a user