diff options
author | Hailey <me@haileyok.com> | 2024-03-19 11:18:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 11:18:22 -0700 |
commit | 9277282e6c9ea90003a4ee583c862af6e96b5433 (patch) | |
tree | abb9a18b4622b717d47949e89dc533c7b86c9a0b /scripts/bundleUpdate.sh | |
parent | a02d5f9eb98ae0c7a3402b02b01cebaa56ce1776 (diff) | |
download | voidsky-9277282e6c9ea90003a4ee583c862af6e96b5433.tar.zst |
add expo-updates github action (#3270)
* add expo-updates github action * add two scripts
Diffstat (limited to 'scripts/bundleUpdate.sh')
-rw-r--r-- | scripts/bundleUpdate.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/bundleUpdate.sh b/scripts/bundleUpdate.sh new file mode 100644 index 000000000..18db81a20 --- /dev/null +++ b/scripts/bundleUpdate.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -o errexit +set -o pipefail +set -o nounset + +rm -rf bundleTempDir +rm -rf bundle.tar.gz + +echo "Creating tarball..." +node scripts/bundleUpdate.js + +cd bundleTempDir || exit + +BUNDLE_VERSION=$(date +%s) +DEPLOYMENT_URL="https://updates.bsky.app/v1/upload?runtime-version=$RUNTIME_VERSION&bundle-version=$BUNDLE_VERSION" + +tar czvf bundle.tar.gz ./* + +echo "Deploying to $DEPLOYMENT_URL..." + +curl -o - --form "bundle=@./bundle.tar.gz" --user "bsky:$DENIS_API_KEY" --basic "$DEPLOYMENT_URL" + +cd .. + +rm -rf bundleTempDir +rm -rf bundle.tar.gz |