这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ refs:
filters:
branches:
only: /^dev.*/
filter_only_dev_release_branches: &filter_only_dev_release_branches
filters:
branches:
only: /^(dev|release).*/
filter_ignore_branches: &filter_ignore_branches
filters:
branches:
Expand Down Expand Up @@ -199,5 +203,6 @@ workflows:
- test_and_build_cli
- deploy:
<<: *filter_only_vtags
<<: *filter_only_dev_release_branches
requires:
- test_and_build_console
2 changes: 2 additions & 0 deletions scripts/get-version-circleci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ fi

if [ -z "$VERSION" ]; then VERSION="$($ROOT/get-version.sh)"; fi

VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"

echo $VERSION
2 changes: 2 additions & 0 deletions scripts/get-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "-dirty" || echo "")
VERSION="${GIT_TAG_EXACT}"
test -n "$VERSION" || VERSION="${GIT_BRANCH}-${GIT_SHA}${GIT_DIRTY}"

VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"

echo "$VERSION"