Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: publish dev builds merge to main #3105

Merged
merged 1 commit into from
Oct 27, 2024
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
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ version: 2.1

setup: true

on_main_or_tag_filter: &on_main_or_tag_filter
filters:
branches:
only: main
tags:
only: /^v.+/

on_tag_filter: &on_tag_filter
filters:
branches:
Expand Down Expand Up @@ -95,11 +102,9 @@ workflows:
- gh-release:
<<: *on_tag_filter
- ui-build:
<<: *on_tag_filter
requires:
- gh-release
<<: *on_main_or_tag_filter
- publish:
<<: *on_tag_filter
<<: *on_main_or_tag_filter
requires:
- ui-build
- trigger_private_renovate:
Expand Down
3 changes: 3 additions & 0 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ jobs:
command: |
echo 'export COMMIT_MESSAGE="$(git log --format=%s -n 1 $CIRCLE_SHA1)"' >> "$BASH_ENV"
echo 'export FORMATTED_COMMIT_MESSAGE="${COMMIT_MESSAGE//\"/\\\"}"' >> "$BASH_ENV"
# returns a version string like 0.1.0.dev11
echo 'export PACKAGE_VERSION="$(git describe --tags --exact-match --abbrev=0 2>/dev/null || echo "$(git describe --tags --abbrev=0 | sed 's/^v//').dev$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)")"' >> "$BASH_ENV"
source "$BASH_ENV"
curl --request POST \
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
Expand All @@ -229,6 +231,7 @@ jobs:
"sqlmesh_commit_author":"'$CIRCLE_USERNAME'",
"sqlmesh_commit_hash":"'$CIRCLE_SHA1'",
"sqlmesh_commit_message":"'"$FORMATTED_COMMIT_MESSAGE"'"
"sqlmesh_package_version":"'$PACKAGE_VERSION'"
}
}'

Expand Down