Skip to content

set proj dir

set proj dir #9

name: Frontend (Development)
on: [push, workflow_dispatch]
jobs:
build-ios-development:
name: Build - iOS
# macos-latest is macOS 12 (at the time of writing - 27/01/24)
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
# https://github.com/expo/expo/issues/25905
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
- run: npm ci
working-directory: ./frontend
- run: npx expo prebuild
working-directory: ./frontend
- run: bundle install
working-directory: ./frontend
- run: bundle exec fastlane main_development
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
working-directory: ./frontend
- uses: actions/upload-artifact@v4
with:
name: ios-development
path: |
./frontend/fosscat.ipa
./frontend/fosscat.app.dSYM.zip
build-android:
name: Build - Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: npm ci
working-directory: ./frontend
- run: npx expo prebuild
working-directory: ./frontend
- run: bundle install
working-directory: ./frontend
- run: bundle exec fastlane android main
working-directory: ./frontend
- uses: actions/upload-artifact@v4
with:
name: android-development
path: |
./frontend/fosscat.apk
- run: ls