Skip to content

Commit

Permalink
update .gitlab-ci.yml (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jun 29, 2020
1 parent a9bacde commit a93d231
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ job:
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git config --global user.name "${GITLAB_USER_LOGIN}"
script:
- export
- git fetch
- var=$(git describe --tags)
- version=${var:1}
- git push "https://${GITLAB_USER_LOGIN}:$PERSONAL_ACCESS_TOKEN@${CI_REPOSITORY_URL#*@}" --delete f-droid
- git push "https://${GITLAB_USER_LOGIN}:${PERSONAL_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" --delete f-droid
- git checkout -b f-droid
- sed -i "s#versionCode appVersionCode#versionCode $version#" app/build.gradle
- sed -i "s#versionName appVersionName#versionName $version#" app/build.gradle
- git add app/build.gradle
- git commit -m "update to $version"
- git push "https://${GITLAB_USER_LOGIN}:$PERSONAL_ACCESS_TOKEN@${CI_REPOSITORY_URL#*@}"
- cat app/build.gradle
- git push "https://${GITLAB_USER_LOGIN}:${PERSONAL_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}"
- cat app/build.gradle | grep $version
only:
- tags

0 comments on commit a93d231

Please sign in to comment.