Skip to content

Commit

Permalink
update .gitlab-ci.yml (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jun 29, 2020
1 parent 20f3ceb commit a9bacde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
job:
before_script:
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.name "${GITLAB_USER_LOGIN}"
script:
- export
- git fetch
- var=$(git describe --tags)
- version=${var:1}
- git push "https://${GITLAB_USER_NAME}:${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_NAME}:$PERSONAL_ACCESS_TOKEN@${CI_REPOSITORY_URL#*@}"
- git push "https://${GITLAB_USER_LOGIN}:$PERSONAL_ACCESS_TOKEN@${CI_REPOSITORY_URL#*@}"
- cat app/build.gradle
only:
- tags

0 comments on commit a9bacde

Please sign in to comment.