diff --git a/deploy-playstore.sh b/deploy-playstore.sh index 78aeb590..5d31fcfb 100644 --- a/deploy-playstore.sh +++ b/deploy-playstore.sh @@ -15,7 +15,7 @@ touch $DOCUMENT_ROOT/maintenance.file # Swap over the content echo "Deploying content..." -cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab $DOCUMENT_ROOT/app-playstore-release.aab +aws s3 cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab s3://artifacts-grayjay-app/app-playstore-release.aab # Notify Cloudflare to wipe the CDN cache echo "Purging Cloudflare cache for zone $CLOUDFLARE_ZONE_ID..." diff --git a/deploy-stable.sh b/deploy-stable.sh index ba965acf..09de7833 100644 --- a/deploy-stable.sh +++ b/deploy-stable.sh @@ -27,6 +27,20 @@ echo $VERSION > $DOCUMENT_ROOT/version.txt mkdir -p $DOCUMENT_ROOT/changelogs git tag -l --format='%(contents)' $VERSION > $DOCUMENT_ROOT/changelogs/$VERSION +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-x86_64-release.apk s3://artifacts-grayjay-app/app-x86_64-release.apk +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-arm64-v8a-release.apk s3://artifacts-grayjay-app/app-arm64-v8a-release.apk +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-armeabi-v7a-release.apk s3://artifacts-grayjay-app/app-armeabi-v7a-release.apk +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-universal-release.apk s3://artifacts-grayjay-app/app-universal-release.apk +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-x86-release.apk s3://artifacts-grayjay-app/app-x86-release.apk +aws s3 cp ./app/build/outputs/apk/stable/release/app-stable-arm64-v8a-release.apk s3://artifacts-grayjay-app/app-release.apk + +VERSION=$(git describe --tags) +echo $VERSION > ./version.txt +git tag -l --format='%(contents)' $VERSION > ./changelog.txt + +aws s3 cp ./version.txt s3://artifacts-grayjay-app/version.txt +aws s3 cp ./changelog.txt s3://artifacts-grayjay-app/changelogs/$VERSION + # Notify Cloudflare to wipe the CDN cache echo "Purging Cloudflare cache for zone $CLOUDFLARE_ZONE_ID..." curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_cache" \ diff --git a/deploy-unstable.sh b/deploy-unstable.sh index 856a5406..7ac97441 100644 --- a/deploy-unstable.sh +++ b/deploy-unstable.sh @@ -23,6 +23,16 @@ cp ./app/build/outputs/apk/unstable/release/app-unstable-x86-release.apk $DOCUME cp ./app/build/outputs/apk/unstable/release/app-unstable-arm64-v8a-release.apk $DOCUMENT_ROOT/app-release-unstable.apk git describe --tags > $DOCUMENT_ROOT/version-unstable.txt +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-x86_64-release.apk s3://artifacts-grayjay-app/app-x86_64-release-unstable.apk +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-arm64-v8a-release.apk s3://artifacts-grayjay-app/app-arm64-v8a-release-unstable.apk +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-armeabi-v7a-release.apk s3://artifacts-grayjay-app/app-armeabi-v7a-release-unstable.apk +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-universal-release.apk s3://artifacts-grayjay-app/app-universal-release-unstable.apk +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-x86-release.apk s3://artifacts-grayjay-app/app-x86-release-unstable.apk +aws s3 cp ./app/build/outputs/apk/unstable/release/app-unstable-arm64-v8a-release.apk s3://artifacts-grayjay-app/app-release-unstable.apk + +git describe --tags > ./version-unstable.txt +aws s3 cp ./version-unstable.txt s3://artifacts-grayjay-app/version-unstable.txt + # Notify Cloudflare to wipe the CDN cache echo "Purging Cloudflare cache for zone $CLOUDFLARE_ZONE_ID..." curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_cache" \