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 /.github/workflows | |
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 '.github/workflows')
-rw-r--r-- | .github/workflows/bundle-deploy-eas-update.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml new file mode 100644 index 000000000..72a38eaa6 --- /dev/null +++ b/.github/workflows/bundle-deploy-eas-update.yml @@ -0,0 +1,55 @@ +--- +name: Bundle and Deploy EAS Update + +on: + workflow_dispatch: + inputs: + runtimeVersion: + type: string + description: Runtime version (in x.x.x format) that this update is for + required: true + +jobs: + bundleDeploy: + name: Bundle and Deploy EAS Update + runs-on: ubuntu-latest + steps: + - name: 🧐 Validate version + run: | + [[ "${{ github.event.inputs.runtimeVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "Version is valid" || exit 1 + + - name: ⬇️ Checkout + uses: actions/checkout@v4 + + - name: 🔧 Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: yarn + + - name: ⚙️ Install Dependencies + run: yarn install + + - name: 🪛 Install jq + uses: dcarbone/install-jq-action@v2 + + - name: ⛏️ Setup Expo + run: yarn global add eas-cli-local-build-plugin + + - name: 🔤 Compile Translations + run: yarn intl:build + + - name: ✏️ Write environment variables + run: | + export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}' + echo "${{ secrets.ENV_TOKEN }}" > .env + echo "$json" > google-services.json + + - name: 🏗️ Create Bundle + run: yarn export + + - name: 📦 Package Bundle and 🚀 Deploy + run: yarn make-deploy-bundle + env: + DENIS_API_KEY: ${{ secrets.DENIS_API_KEY }} + RUNTIME_VERSION: ${{ github.event.inputs.runtimeVersion }} |