Skip to content

Commit

Permalink
ci/add automatic tagging for enmeshed app publish pipelines (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
erbenjak authored Sep 3, 2024
1 parent 15b0e4d commit d7e3873
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/connector_ui/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: connector_ui
description: A UI for the Enmeshed Connector.
publish_to: "none"
version: 0.1.0

environment:
sdk: ">=3.5.0 <4.0.0"
Expand Down
6 changes: 4 additions & 2 deletions codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workflows:
events:
- tag
tag_patterns:
- pattern: "enmeshed-v*"
- pattern: "enmeshed-v+([0-9]).+([0-9]).+([0-9])"
include: true
cancel_previous_builds: false

Expand All @@ -35,6 +35,7 @@ workflows:
BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "eu.enmeshed.app" --tracks="internal") + 1))
flutter build appbundle --release \
--build-number=$BUILD_NUMBER \
--build-name=${CM_TAG/#enmeshed-v/} \
--dart-define="app_baseUrl=$app_baseUrl" \
--dart-define="app_clientId=$app_clientId" \
--dart-define="app_clientSecret=$app_clientSecret"
Expand Down Expand Up @@ -76,7 +77,7 @@ workflows:
events:
- tag
tag_patterns:
- pattern: "enmeshed-v*"
- pattern: "enmeshed-v+([0-9]).+([0-9]).+([0-9])"
include: true
cancel_previous_builds: true
environment:
Expand All @@ -102,6 +103,7 @@ workflows:
- name: Flutter build ipa
script: |
flutter build ipa --release \
--build-name=${CM_TAG/#enmeshed-v/} \
--export-options-plist=/Users/builder/export_options.plist \
--dart-define="app_baseUrl=$app_baseUrl" \
--dart-define="app_clientId=$app_clientId" \
Expand Down

0 comments on commit d7e3873

Please sign in to comment.