Skip to content

Commit

Permalink
chore(release): Add release script (#403)
Browse files Browse the repository at this point in the history
chore(ci): update to run on release branch
  • Loading branch information
msbrogli authored and alexruzenhack committed May 15, 2024
1 parent b7d229c commit 4c4856f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ on:
push:
branches:
- master
- dev
- release
- release-candidate
tags:
- v*
pull_request:
branches:
- dev
- master
- release
- release-candidate
jobs:
test:
runs-on: 'ubuntu-latest'
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ ios/HathorMobile.xcodeproj/project.xcworkspace/
.metro-health-check*
# testing
/coverage

# Env file used by pre_release.sh.
/env
28 changes: 28 additions & 0 deletions pre_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
# Script to release new versions for iOS and Android. After running it, you still
# have to build the project on XCode and Android Studio.
#
# This script expects a file `./env` with exported envvars.
#

set -e # Exit on any command failure.
set -u # Exit on unset variables.
set -v # Verbose mode for better debugging

rm -rf node_modules/

rm -f ./android/app/google-services.json
rm -f ./android/app/GoogleService-Info.plist
rm -f ./notifications/GoogleService-Info.plist

npm ci

(cd ios/ && pod install)

make i18n

source ./env
mkdir -p ./notifications
aws s3 cp ${HATHOR_WALLET_MOBILE_S3_PATH}/google-services.json ./android/app
aws s3 cp ${HATHOR_WALLET_MOBILE_S3_PATH}/GoogleService-Info.plist ./notifications/

0 comments on commit 4c4856f

Please sign in to comment.