This commit is contained in:
2019-09-22 14:10:49 +02:00
parent ea91e9c2be
commit 15b59b42c5
3 changed files with 4 additions and 21 deletions
+3 -14
View File
@@ -6,23 +6,12 @@ steps:
- name: versioning
image: node:12
commands:
- export PACKAGE_VERSION=$(cat ./package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- echo $PACKAGE_VERSION
- echo $LATEST_VERSION
- echo $DRONE_BUILD_CREATED
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \
then \
git tag "$PACKAGE_VERSION" \
git status \
git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION \
else \
echo 'Version ' \
echo "$LATEST_VERSION" \
echo 'did not change. Don`t push tag to master' \
fi
- git commit -A -m "Drone tagged as ${DRONE_TAG}"
- git tag "${DRONE_TAG}"
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
environment:
GIT_USER:
+1 -1
View File
@@ -1,2 +1,2 @@
# Documentation
docs [https://gitea.frontblock.me/fw-vendor/rpclibrary/src/branch/master/docs/README.md]
generated Documentation [https://gitea.frontblock.me/fw-vendor/rpclibrary/src/branch/master/docs/globals.md]
-6
View File
@@ -1,6 +0,0 @@
[rpclibrary](README.md) [Globals](globals.md)
# rpclibrary
# Documentation
docs [https://gitea.frontblock.me/fw-vendor/rpclibrary/src/branch/master/docs/README.md]