mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
OPS: cleanup appcenter scripts (were used for appetize); some ci & docs fixes
This commit is contained in:
parent
df85de6680
commit
48f2169037
@ -74,7 +74,7 @@ jobs:
|
||||
|
||||
# run tests!
|
||||
- run:
|
||||
command: yarn jest || yarn jest || yarn jest || yarn jest
|
||||
command: yarn jest || yarn jest || yarn jest || yarn jest || sleep 60 && yarn jest
|
||||
|
||||
# Orchestrate our job run sequence
|
||||
workflows:
|
||||
|
23
RELEASE.md
23
RELEASE.md
@ -2,27 +2,8 @@
|
||||
|
||||
## Apple
|
||||
|
||||
* test the build on a real device. It is imperative that you run selftest and it gives you OK
|
||||
* if necessary, up version number in all relevant files (you can use `./edit-version-number.sh`)
|
||||
* run `./scripts/release-notes.sh` - it prints changelog between latest tag and now, put this output under
|
||||
new version in file `ios/fastlane/metadata/en-US/release_notes.txt` (on top); if file got too big
|
||||
delete the oldest version from the bottom of the file
|
||||
* now is a good time to commit a ver bump and release notes changes
|
||||
* create this release version in App Store Connect (iTunes) and attach appropriate build. note
|
||||
last 4 digits of the build and announce it - this is now a RC. no need to fill release notes yet
|
||||
* `cd ios/` and then run `DELIVER_USERNAME="my_itunes_email@example.com" DELIVER_PASSWORD="my_itunes_password" fastlane deliver --force --skip_binary_upload --skip_screenshots --ignore_language_directory_validation -a io.bluewallet.bluewallet --app_version "6.6.6"`
|
||||
but replace `6.6.6` with your version number - this will upload release notes to all locales in itunes
|
||||
* go back to App Store Connect and press `Submit for Review`. choose Yes, we use identifiers - for installs tracking
|
||||
* once its approved and released it is safe to cut a release tag: run `git tag -m "REL v6.6.6: 76ed479" v6.6.6 -s`
|
||||
where `76ed479` is a latest commit in this version. replace the version as well. then run `git push origin --tags`; alternative way to tag: `git tag -a v6.0.0 2e1a00609d5a0dbc91bcda2421df0f61bdfc6b10 -m "v6.0.0" -s`
|
||||
* you are awesome!
|
||||
* TBD
|
||||
|
||||
## Android
|
||||
|
||||
* do android after ios usually
|
||||
* test the build on a real device. We have accounts with browserstack where you can do so.
|
||||
* its imperative that you run selftest and it gives you OK. note which build you are testing
|
||||
* go to appcenter.ms, find this exact build under `master` builds, and press `Distribute` -> `Store` -> `Production`.
|
||||
in `Release notes` write the release, this field is smaller than iOS, so you need to keep it bellow 500 characters.
|
||||
* now just wait till appcenter displays a message that it is successfully distributed
|
||||
* noice!
|
||||
* TBD
|
||||
|
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo Uploading to Appetize and publishing link to Github...
|
||||
echo "Branch "
|
||||
BRANCH=`git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3`
|
||||
echo $BRANCH
|
||||
echo "Branch 2 "
|
||||
git log -n 1 --pretty=%d HEAD | awk '{print $2}' | sed 's/origin\///' | sed 's/)//'
|
||||
|
||||
FILENAME="$APPCENTER_OUTPUT_DIRECTORY/app-release.apk"
|
||||
|
||||
if [ -f $FILENAME ]; then
|
||||
APTZ=`curl "https://$APPETIZE@api.appetize.io/v1/apps" -F "file=@$FILENAME" -F "platform=android"`
|
||||
echo Apptezize response:
|
||||
echo $APTZ
|
||||
APPURL=`node -e "let e = JSON.parse('$APTZ'); console.log(e.publicURL + '?device=pixel4');"`
|
||||
echo App url: $APPURL
|
||||
PR=`node scripts/appcenter-post-build-get-pr-number.js`
|
||||
echo PR: $PR
|
||||
|
||||
DLOAD_APK="https://lambda-download-android-build.herokuapp.com/download/$BUILD_BUILDID"
|
||||
|
||||
curl -X POST --data "{\"body\":\"♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫\n\n [android in browser] $APPURL\n\n[download apk]($DLOAD_APK) \"}" -H "Authorization: Bearer $GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments"
|
||||
fi
|
@ -1,43 +0,0 @@
|
||||
const https = require('https');
|
||||
|
||||
const gitCommand = "git log -n 1 --pretty=%d HEAD | awk '{print $2}' | sed 's/origin\\///' | sed 's/)//'";
|
||||
const branch = require('child_process').execSync(gitCommand).toString().trim();
|
||||
|
||||
if (branch === 'master') process.exit();
|
||||
|
||||
const req = https.request(
|
||||
{
|
||||
hostname: 'api.github.com',
|
||||
port: 443,
|
||||
path: '/repos/BlueWallet/BlueWallet/pulls',
|
||||
method: 'GET',
|
||||
headers: { 'User-Agent': 'BlueWallet bot' },
|
||||
},
|
||||
resp => {
|
||||
let data = '';
|
||||
|
||||
resp.on('data', chunk => {
|
||||
data += chunk;
|
||||
});
|
||||
|
||||
resp.on('end', () => {
|
||||
try {
|
||||
const prs = JSON.parse(data);
|
||||
for (const pr of prs) {
|
||||
if (branch === pr.head.ref) {
|
||||
console.log(pr.number);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
console.log('got json: ', data);
|
||||
}
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
req.on('error', e => {
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
req.end();
|
Loading…
Reference in New Issue
Block a user