Skip to content

Commit

Permalink
update .gitlab-ci.yml (fixes #992) (#1054)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
law-lin and dogi authored Jul 11, 2020
1 parent 45b1669 commit c8b3a44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ job:
- git fetch
- var=$(git describe --tags)
- version=${var:1}
- exists=$(git ls-remote --heads origin fdroid)
- if [[ -n $exists ]]; then
- git push "https://${GITLAB_USER_LOGIN}:${PERSONAL_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" --delete fdroid
- fi
- git checkout -b fdroid
- sed -i "s#versionCode appVersionCode#versionCode $version#" app/build.gradle
- sed -i "s#versionName appVersionName#versionName \"$version\"#" app/build.gradle
Expand Down

0 comments on commit c8b3a44

Please sign in to comment.