release.sh 831 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. ### Bash Environment Setup
  3. # http://redsymbol.net/articles/unofficial-bash-strict-mode/
  4. # https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
  5. # set -o xtrace
  6. set -o errexit
  7. set -o errtrace
  8. set -o nounset
  9. set -o pipefail
  10. IFS=$'\n'
  11. REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
  12. cd "$REPO_DIR"
  13. # Run the linters and tests
  14. # ./bin/lint.sh
  15. # ./bin/test.sh
  16. # # Run all the build scripts
  17. # ./bin/build_git.sh
  18. # ./bin/build_docs.sh
  19. # ./bin/build_pip.sh
  20. # ./bin/build_docker.sh
  21. # Push relase to public repositories
  22. # ./bin/release_docs.sh
  23. ./bin/release_git.sh "$@"
  24. ./bin/release_pip.sh "$@"
  25. ./bin/release_docker.sh "$@"
  26. VERSION="$(grep '^version = ' "${REPO_DIR}/pyproject.toml" | awk -F'"' '{print $2}')"
  27. echo "[√] Done. Published version v$VERSION"