Skip to content

Merge pull request #182 from zallo-labs/Z-203-amplitude #119

Merge pull request #182 from zallo-labs/Z-203-amplitude

Merge pull request #182 from zallo-labs/Z-203-amplitude #119

Workflow file for this run

name: Deployment
on:
push:
branches: [main]
concurrency:
group: deployment-${{ github.ref }}
cancel-in-progress: true
jobs:
api:
environment: main - api
runs-on: ubuntu-latest
steps:
- name: 🚧 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: 🚧 Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@master
- name: πŸš€ Deploy
run: flyctl deploy . --config api/fly.toml --remote-only --wait-timeout 120
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
api-sentry-release:
environment: main - api
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
steps:
- name: 🚧 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 200 # Sentry looks for the previous release in the git history
- name: πŸ“¦ Install
run: yarn
- name: πŸ—οΈ Build
run: yarn api build
- name: Create Sentry release
uses: getsentry/action-release@v1
with:
working_directory: './api'
sourcemaps: './dist'
app-native:
environment: main - app
runs-on: ubuntu-latest
env:
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
NODE_OPTIONS: '--max-old-space-size=4096'
steps:
- name: 🚧 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: 🚧 Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: '.nvmrc'
- name: 🚧 Setup Expo
uses: expo/expo-github-action@v8
with:
token: ${{ secrets.EXPO_TOKEN }}
eas-version: latest
- name: πŸ“¦ Install
run: yarn
# Updates iOS and Android; web app is deployed via Vercel
- name: πŸš€ Publish update
run: yarn app deploy:update
# docs:
# environment: main - docs
# runs-on: ubuntu-latest
# steps:
# - name: πŸš€ Deploy
# uses: fjogeleit/http-request-action@v1
# with:
# url: ${{ secrets.DEPLOY_HOOK }}
# method: POST