Feat/streamer live page #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
pull_request: | |
branches: [dev, main] | |
workflow_dispatch: | |
inputs: | |
profile: | |
type: choice | |
description: Build profile to use | |
options: | |
- preview | |
- development | |
- production | |
jobs: | |
build-and-test: | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- platform: "ios" | |
os: "macos-12" | |
- platform: "android" | |
os: "ubuntu-latest" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check for FOAM_RELEASE_TOKEN | |
run: | | |
if [ -z "${{ secrets.FOAM_RELEASE_TOKEN }}" ]; then | |
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | |
exit 1 | |
fi | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn | |
- name: Setup Expo | |
uses: expo/expo-github-action@v7 | |
with: | |
expo-version: latest | |
eas-version: latest | |
token: ${{ secrets.FOAM_RELEASE_TOKEN }} | |
- name: Configure build for ${{ matrix.platform }} | |
run: eas build --configure --non-interactive --platform=${{ matrix.platform }} | |
- name: Configure update for ${{ matrix.platform }} | |
run: eas update --configure --non-interactive --platform=${{ matrix.platform }} | |
- name: Create device for ${{ matrix.platform }} | |
run: eas device:create --non-interactive --platform=${{ matrix.platform }} | |
- name: Start build for ${{ matrix.platform }} | |
run: eas build --local --non-interactive --platform=${{ matrix.platform }} --profile=prerelease-${{ github.sha }} |