diff --git a/.drone.yml b/.drone.yml index cefb4d6..fea0597 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/README.md b/README.md index 7a13bbb..8f7e3c4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # Documentation -docs [https://gitea.frontblock.me/fw-vendor/rpclibrary/src/branch/master/docs/README.md] \ No newline at end of file +generated Documentation [https://gitea.frontblock.me/fw-vendor/rpclibrary/src/branch/master/docs/globals.md] \ No newline at end of file diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index b7f2f8f..0000000 --- a/docs/README.md +++ /dev/null @@ -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]