Skip to content

Commit

Permalink
Merge expo PR build configs and fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
whusterj committed Nov 12, 2024
1 parent 922d3cf commit 126ecb4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 76 deletions.
1 change: 0 additions & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def remove_expo_yaml_files():
join(".github/workflows", "expo-pr.yml"),
join(".github/workflows", "expo-teststore-build-android.yml"),
join(".github/workflows", "expo-teststore-build-ios.yml"),
join(".github/workflows", "expo-pr-app-build.yml"),
join(".github/workflows", "expo-build.yml"),
]
for file_name in file_names:
Expand Down
21 changes: 21 additions & 0 deletions {{cookiecutter.project_slug}}/.github/workflows/expo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ on:
default: false
type: "boolean"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: jwalton/gh-find-current-pr@v1
id: findPr
- name: Set name for PR
if: success() && steps.findPr.outputs.number
run: echo "PR=pr-${PR}" >> $GITHUB_ENV
env:
PR: {{ "${{ steps.findPr.outputs.pr }}" }}
outputs:
PR: {{ "${{ env.PR }}" }}

build:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -64,3 +77,11 @@ jobs:
CLEAR_CACHE_FLAG="--clear-cache"
fi
eas build --profile {{ "${{ github.event.inputs.profile }}" }} --platform {{ "${{ github.event.inputs.platform }}" }} --non-interactive $CLEAR_CACHE_FLAG
- name: 🚀 Publish PR Preview
run: cd mobile && eas update --branch={{ "${{ needs.setup.outputs.PR }}" }} --non-interactive --auto
env:
BACKEND_SERVER_URL: {{ "${{ github.event.deployment_status.environment_url }}" }}
ROLLBAR_ACCESS_TOKEN: ""
SENTRY_PROJECT_NAME: ""
SENTRY_DSN: ""
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: 🚀 Build app
run: cd mobile && eas build --platform all --profile staging --non-interactive
env:
SENTRY_PROJECT_NAME: "<REPLACE_WTIH_SENTRY_PROJECT_NAME>"
SENTRY_PROJECT_NAME: "<REPLACE_WITH_SENTRY_PROJECT_NAME>"

- name: 🚀 Publish Staging Preview
run: cd mobile && eas update --branch=staging --non-interactive --auto
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
with:
expo-version: latest
eas-version: latest
token: {{ "${{ secrets.EXPO_TOKEN }}" }}
token: {{ "${{ secrets.EXPO_TOKEN }}" }}

- name: 📦 Install dependencies
working-directory: ./mobile
run: npm install

- name: 🚀 Build app
run: cd mobile && eas build --platform android --profile production --non-interactive --auto-submit
env:
SENTRY_PROJECT_NAME: "<REPLACE_WTIH_SENTRY_PROJECT_NAME>"
env:
SENTRY_PROJECT_NAME: "<REPLACE_WITH_SENTRY_PROJECT_NAME>"
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
with:
expo-version: latest
eas-version: latest
token: {{ "${{ secrets.EXPO_TOKEN }}" }}
token: {{ "${{ secrets.EXPO_TOKEN }}" }}

- name: 📦 Install dependencies
working-directory: ./mobile
run: npm install

- name: 🚀 Build app
run: cd mobile && eas build --platform ios --profile production --non-interactive --auto-submit
env:
SENTRY_PROJECT_NAME: "<REPLACE_WTIH_SENTRY_PROJECT_NAME>"
env:
SENTRY_PROJECT_NAME: "<REPLACE_WITH_SENTRY_PROJECT_NAME>"

0 comments on commit 126ecb4

Please sign in to comment.