Skip to content

Commit

Permalink
merge gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vascYT committed Oct 25, 2024
1 parent e1b72bc commit 2aa7624
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 54 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/build-apk.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
name: Build IPA

on:
workflow_dispatch:
push:

name: Build apk
jobs:
build-apk:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3

- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: pnpm

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
packager: pnpm

- name: 🏗 Setup Java 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"

- name: 📦 Install dependencies
run: pnpm install

- name: 🚀 Build app
run: eas build --local --non-interactive --platform android --profile production
env:
EXPO_PUBLIC_API_URL: ${{ secrets.API_URL }}
EXPO_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }}
EXPO_PUBLIC_POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
EXPO_PUBLIC_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}

- name: Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: vshop_apk
path: build-*.apk

build-ipa:
runs-on: macos-14
steps:
Expand Down

0 comments on commit 2aa7624

Please sign in to comment.