-
Notifications
You must be signed in to change notification settings - Fork 2
FCE-2578: Add EAS Build #468
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ffe075e
use released package
MiloszFilimowski 6f0b4c1
configure eas
MiloszFilimowski 3b84c65
fix prebuild script
MiloszFilimowski df292a7
Merge remote-tracking branch 'origin/main' into mfilimowski/FCE-2578-…
MiloszFilimowski b7f1aff
implement some copilot suggestions
MiloszFilimowski bdd9d18
Merge branch 'main' into mfilimowski/FCE-2578-eas-build
MiloszFilimowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: Mobile EAS Build | ||
| on: | ||
| pull_request: | ||
| types: [labeled] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| build: | ||
| if: ${{ github.event.label.name == 'eas build' }} | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: macOS-latest | ||
| steps: | ||
| - name: 🏗 Setup repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: 🏗 Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cache: npm | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: 🏗 Setup EAS | ||
| uses: expo/expo-github-action@v8 | ||
| with: | ||
| eas-version: latest | ||
| token: ${{ secrets.EXPO_TOKEN }} | ||
|
|
||
| - name: Use corepack | ||
| run: corepack enable | ||
|
|
||
| - name: 📦 Install dependencies | ||
| run: yarn && yarn build | ||
|
|
||
| - name: 🚀 Build app | ||
| run: eas build --non-interactive --platform=all --profile production | ||
| working-directory: examples/mobile-client/fishjam-chat | ||
|
|
||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: 🛫 Submit iOS app to TestFlight | ||
| run: eas submit --non-interactive --platform=ios --latest | ||
| working-directory: examples/mobile-client/fishjam-chat | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: ⛓️💥 Get iOS archive url and version | ||
| id: ios_build | ||
| run: eas build:list --json --non-interactive | jq -r '[.[] | select(.platform=="IOS")][0] | "version=\(.appVersion) (\(.appBuildVersion))"' >> $GITHUB_OUTPUT | ||
| working-directory: examples/mobile-client/fishjam-chat | ||
|
|
||
| - name: ⛓️💥 Get Android archive url and version | ||
| id: android_build | ||
| run: eas build:list --json --non-interactive | jq -r '[.[] | select(.platform=="ANDROID")][0] | "url=\(.artifacts.applicationArchiveUrl)\nversion=\(.appVersion) (\(.appBuildVersion))"' >> $GITHUB_OUTPUT | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| working-directory: examples/mobile-client/fishjam-chat | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: 📱 Get App Store Connect app ID | ||
| id: asc_app | ||
| run: echo "id=$(jq -r '.submit.production.ios.ascAppId' eas.json)" >> $GITHUB_OUTPUT | ||
| working-directory: examples/mobile-client/fishjam-chat | ||
|
|
||
| - name: 💬 Add comment with build links | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| github-token: ${{secrets.GITHUB_TOKEN}} | ||
| script: | | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: '**Download links**\nAndroid - ${{ steps.android_build.outputs.version }}: ${{ steps.android_build.outputs.url }}\niOS - ${{ steps.ios_build.outputs.version }}: https://testflight.apple.com/v1/app/${{ steps.asc_app.outputs.id }}' | ||
| }) | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "cli": { | ||
| "version": ">= 12.5.3", | ||
| "appVersionSource": "remote" | ||
| }, | ||
| "build": { | ||
| "base": { | ||
| "ios": { | ||
| "image": "latest" | ||
MiloszFilimowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| }, | ||
| "development": { | ||
| "extends": "base", | ||
| "developmentClient": true, | ||
| "distribution": "internal" | ||
| }, | ||
| "preview": { | ||
| "extends": "base", | ||
| "distribution": "internal" | ||
| }, | ||
| "production": { | ||
| "extends": "base", | ||
| "autoIncrement": true, | ||
| "android": { | ||
| "buildType": "apk" | ||
| } | ||
| } | ||
| }, | ||
| "submit": { | ||
| "production": { | ||
| "ios": { | ||
| "ascAppId": "6711353226" | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.