-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expo Build for PRs #246
base: main
Are you sure you want to change the base?
Expo Build for PRs #246
Changes from all commits
59fd7db
49e92d1
79518dc
0c5da30
adc448e
f2e894d
5654b66
7b70cc2
5c5dea7
9aca1f6
922d3cf
126ecb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it's a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We still use |
||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -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 |
---|---|---|
|
@@ -50,3 +50,5 @@ jobs: | |
env: | ||
EXPO_PUBLIC_BACKEND_SERVER_URL: {{ "${{ github.event.deployment_status.environment_url }}" }} | ||
EXPO_PUBLIC_ROLLBAR_ACCESS_TOKEN: "" | ||
SENTRY_PROJECT_NAME: "" | ||
SENTRY_DSN: "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These Sentry vars are needed, otherwise they will be blank in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I've merged a couple ideas from in-progress work from @oudeismetis with the expo-build.yml config from @lakardion — testing this on a project now and will adjust as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! warms my heart 🙏