mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Release workflow fix (#11733)
* Release workflow fix * Remove obsolete script * Small fix
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $BRANCH == "master" ]]; then
|
||||
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
||||
else
|
||||
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||
fi;
|
||||
|
||||
echo "git tag -a ${VERSION} -m ${VERSION}"
|
||||
git config --local user.name "alfresco-build"
|
||||
git config --local user.email "build@alfresco.com"
|
||||
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||
git remote rm origin
|
||||
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
||||
git remote add origin $GITHUB_REPO
|
||||
|
||||
if [[ "$1" == "--dryrun" ]]; then
|
||||
echo "dry run: Pushing new tag ${VERSION}!"
|
||||
else
|
||||
echo "Pushing new tag ${VERSION}!"
|
||||
git push origin --tags
|
||||
fi;
|
||||
Reference in New Issue
Block a user