chore: Updated DEPLOYMENT.md and fix github release script
This commit is contained in:
parent
c97c5fe949
commit
d5d91f8095
@ -4,13 +4,10 @@
|
|||||||
2. Locally switch to develop
|
2. Locally switch to develop
|
||||||
3. Pull github develop
|
3. Pull github develop
|
||||||
4. Pull weblate develop
|
4. Pull weblate develop
|
||||||
5. Add change logs (fastlane/metadata/android/en-US/changelogs/XXX.txt)
|
5. Push to develop gitlab and github
|
||||||
6. Run ci-script/update-changelog.sh
|
6. Merge develop into master and merge
|
||||||
7. Push to gitlab
|
7. Wait for Release Build and release to play store
|
||||||
8. Merge request into master and merge
|
8. Wait for gitlab -> github sync
|
||||||
9. Add Release Tag on master branch
|
9. Run publishGithub
|
||||||
10. Release to play store
|
|
||||||
11. Wait for gitlab -> github sync
|
|
||||||
12. Run publishGithub
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,10 +33,10 @@ postdata="{\"tag_name\":\"${CI_COMMIT_TAG}\",\"target_commitish\":\"master\",\"n
|
|||||||
|
|
||||||
# Generate Release
|
# Generate Release
|
||||||
echo "Generate Release..."
|
echo "Generate Release..."
|
||||||
echo "${postdata}" | jq
|
echo "${postdata}" | jq .
|
||||||
|
|
||||||
res=$(curl -s -X POST -H "Content-Type:application/json" -H "Authorization: token ${github_token}" https://${username}@api.github.com/repos/${repo}/releases -d "${postdata}")
|
res=$(curl -s -X POST -H "Content-Type:application/json" -H "Authorization: token ${github_token}" https://${username}@api.github.com/repos/${repo}/releases -d "${postdata}")
|
||||||
echo "${res}" | jq
|
echo "${res}" | jq .
|
||||||
|
|
||||||
release_id=$(echo "${res}" | jq '.id')
|
release_id=$(echo "${res}" | jq '.id')
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# External environment variables
|
|
||||||
VERSION_CODE="$1"
|
|
||||||
export VERSION_NAME=${VERSION_CODE:0:1}.${VERSION_CODE:1:1}.${VERSION_CODE:2}
|
|
||||||
|
|
||||||
CHANGES=$(cat fastlane/metadata/android/en-US/changelogs/$VERSION_CODE.txt)
|
|
||||||
|
|
||||||
DATE=$(date '+%Y-%m-%d')
|
|
||||||
NEW="### Version ${VERSION_NAME} Tag: v${VERSION_NAME} (${DATE})\n${CHANGES}\n"
|
|
||||||
echo -e "${NEW}\n$(cat CHANGELOG.md)" > CHANGELOG.md
|
|
Loading…
Reference in New Issue
Block a user