Skip to content

remove ruby fastlane #11

remove ruby fastlane

remove ruby fastlane #11

Workflow file for this run

name: Build Native Previews
on:
push:
# branches-ignore:
# - main
# paths:
# - 'packages/native-ui/**'
# - 'apps/native-ui-storybook/**'
env:
CI: true
jobs:
build-for-android:
runs-on: macos-13
concurrency:
group: preview-android-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17.0.10'
java-package: jdk
architecture: x64
- uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install deps
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Android APK Bundle
working-directory: ./apps/native-ui-storybook
run: pnpm run build:preview:android
- name: Upload bundle to Appetize
uses: appetizeio/[email protected]
with:
apiToken: ${{ secrets.APPETIZE_API_TOKEN }}
publicKey: ${{ secrets.APPETIZE_PUBLIC_KEY_ANDROID }}
appFile: /Users/runner/work/design-systems/design-systems/apps/native-ui-storybook/build/native-ui.apk
platform: 'android'
build-for-ios:
runs-on: macos-13
concurrency:
group: preview-android-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: '2.7'
# - uses: maierj/[email protected]
# with:
# lane: 'beta'
- name: setup-cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: 1.14.3
- uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install deps
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build iOS app
working-directory: ./apps/native-ui-storybook
run: pnpm run build:preview:ios
- name: Upload bundle to Appetize
uses: appetizeio/[email protected]
with:
apiToken: ${{ secrets.APPETIZE_API_TOKEN }}
publicKey: ${{ secrets.APPETIZE_PUBLIC_KEY_IOS }}
appFile: /Users/runner/work/design-systems/design-systems/apps/native-ui-storybook/build/native-ui.tar.gz
platform: 'ios'