Skip to content

Commit

Permalink
chore: update outdated GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 19, 2025
1 parent 7892cfc commit d6e2f8e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
required: false

jobs:
mobile:
example:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repository
Expand All @@ -37,23 +37,23 @@ jobs:
with:
expo-token: ${{ secrets.EXPO_TOKEN }}

- name: 👷 Build packages for mobile
run: pnpm run -w build:mobile
- name: 👷 Build packages for example
run: pnpm run -w build:example

# You can remove this step if you already configured this
# This project shouldn't be pre-configured with this ID, that's why its omitted
- name: 👷 Configure project
working-directory: apps/mobile
working-directory: apps/example
run: |
eas init --id d202a56f-0162-450d-af3b-a2d2e0678594 --force --non-interactive
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json
- name: 🚀 Build mobile
- name: 🚀 Build example
if: ${{ !github.event.inputs.submit || github.event.inputs.profile != 'production' }}
working-directory: apps/mobile
working-directory: apps/example
run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=${{ github.event.inputs.profile }}

- name: 🚀 Build & submit mobile
- name: 🚀 Build & submit example
if: ${{ github.event.inputs.submit && github.event.inputs.profile != 'production' }}
working-directory: apps/mobile
working-directory: apps/example
run: eas build --non-interactive --wait --auto-submit --platform=${{ github.event.inputs.platform }} --profile=${{ github.event.inputs.profile }}
8 changes: 4 additions & 4 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
EXPO_USE_FAST_RESOLVER: true # Use the faster Metro resolver in SDK 51

jobs:
mobile:
example:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repository
Expand All @@ -24,18 +24,18 @@ jobs:
expo-token: ${{ secrets.EXPO_TOKEN }}

- name: 👷 Build packages
run: pnpm run -w build:mobile
run: pnpm run -w build:example

# You can remove this step if you already configured this
# This project shouldn't be pre-configured with this ID, that's why its omitted
- name: 👷 Configure project
working-directory: apps/mobile
working-directory: apps/example
run: |
eas init --id d202a56f-0162-450d-af3b-a2d2e0678594 --force --non-interactive
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
working-directory: apps/mobile
working-directory: apps/example
command: eas update --auto --branch=pr-${{ github.event.number }}
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ env:
jobs:
packages:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: 🏗 Setup repository
uses: actions/checkout@v4
Expand Down

0 comments on commit d6e2f8e

Please sign in to comment.