Skip to content
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

#31 Setup App deployment and CI #37

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- publish

jobs:
Publish:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
run: npm install

- name: 🚀 Build & Submit App
run: eas build --platform $PLATFORM --profile $PROFILE --auto-submit --non-interactive
env:
PLATFORM: ${{ vars.BUILD_PLATFORM }}
PROFILE: ${{ vars.BUILD_PROFILE }}

# This step will be deprecated and removed in the future once the google play account is created.
- name: 🚀 Build Android App
run: eas build --platform android --profile $PROFILE --non-interactive
env:
PROFILE: ${{ vars.BUILD_PROFILE }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# dependencies
/node_modules
package-lock.json

# misc
.env
Expand Down
18 changes: 10 additions & 8 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"preview": {
"autoIncrement": true,
"distribution": "store",
"android": {
"buildType": "apk"
}
},
"preview": {
"distribution": "internal"
},
"production": {
"autoIncrement": true,
"distribution": "store",
"android": {
"buildType": "apk"
}
}
},
"submit": {
"production": {},
"preview": {}
"preview": {
"ios": {
"ascAppId": "6670758891",
"appleTeamId": "LAF47944D6"
}
}
}
}
Loading