Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.random
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.random
Commits
53748227
Commit
53748227
authored
3 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Fix double build on create tag
parent
1e6a0e3b
No related branches found
No related tags found
1 merge request
!5
Resolve "Remove double build on create tag when releasing application"
Pipeline
#1450
passed
3 years ago
Stage: update
Stage: build-debug
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-2
8 additions, 2 deletions
.gitlab-ci.yml
android/gradle.properties
+2
-2
2 additions, 2 deletions
android/gradle.properties
with
10 additions
and
4 deletions
.gitlab-ci.yml
+
8
−
2
View file @
53748227
...
@@ -9,6 +9,8 @@ stages:
...
@@ -9,6 +9,8 @@ stages:
update
:
update
:
stage
:
update
stage
:
update
except
:
-
tags
script
:
script
:
-
flutter packages get
-
flutter packages get
-
flutter packages upgrade
-
flutter packages upgrade
...
@@ -16,6 +18,8 @@ update:
...
@@ -16,6 +18,8 @@ update:
android:build-debug
:
android:build-debug
:
stage
:
build-debug
stage
:
build-debug
except
:
-
tags
script
:
script
:
# Flutter local configuration
# Flutter local configuration
-
echo flutter.sdk=$FLUTTER_PATH > android/local.properties
-
echo flutter.sdk=$FLUTTER_PATH > android/local.properties
...
@@ -43,6 +47,8 @@ android:build-release:
...
@@ -43,6 +47,8 @@ android:build-release:
stage
:
build-release
stage
:
build-release
only
:
only
:
-
master
-
master
except
:
-
tags
dependencies
:
dependencies
:
-
android:build-debug
-
android:build-debug
script
:
script
:
...
@@ -86,7 +92,7 @@ application:release:
...
@@ -86,7 +92,7 @@ application:release:
-
VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
-
VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
-
VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
VERSION_CODE="$(grep '^app.versionCode=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
VERSION_CODE="$(grep '^app.versionCode=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
TAG_NAME="Release_${VERSION_
COD
E}_${VERSION_
NAM
E}"
-
TAG_NAME="Release_${VERSION_
NAM
E}_${VERSION_
COD
E}"
-
echo "${TAG_NAME}"
-
echo "${TAG_NAME}"
-
git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME} (${VERSION_CODE})"
-
git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME} (${VERSION_CODE})"
-
git push origin "${TAG_NAME}"
-
git push origin "${TAG_NAME}"
...
...
This diff is collapsed.
Click to expand it.
android/gradle.properties
+
2
−
2
View file @
53748227
org.gradle.jvmargs
=
-Xmx1536M
org.gradle.jvmargs
=
-Xmx1536M
android.useAndroidX
=
true
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableJetifier
=
true
app.versionName
=
1.0.
2
app.versionName
=
1.0.
3
app.versionCode
=
3
app.versionCode
=
4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment