Skip to content

Commit

Permalink
chore: optimize eas env
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZhang1024 committed Oct 23, 2023
1 parent 94059b0 commit 444d0b9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
28 changes: 22 additions & 6 deletions .easignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
node_modules/
build/
dist/
# dependencies
.yarn
**/node_modules

__generated__/
build-electron/
web-build/
**/build
**/__generated__
**/build-electron

# Expo
**/.expo
**/dist
**/web-build

# Native
**/ios/Pods
**/android/.gradle
**/build

# Other Platforms
apps/desktop
apps/mobile
apps/web
apps/ext
10 changes: 5 additions & 5 deletions .github/workflows/release-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
always-auth: true
scope: '@onekeyhq'

- name: Setup keys secret
run: |
echo ${{ secrets.GOOGLE_SERVICE_IOS }} | base64 -d > apps/mobile/ios/OneKeyWallet/GoogleService-Info.plist
echo ${{ secrets.ASC_API_KEY }} | base64 -d > apps/mobile/AscApiKey.p8
- name: Setup Expo
uses: OneKeyHQ/actions/expo-server@main
with:
eas-version: 5.x
token: ${{ secrets.EXPO_TOKEN }}

- name: Setup keys secret
run: |
echo ${{ secrets.GOOGLE_SERVICE_IOS }} | base64 -d > apps/mobile/ios/OneKeyWallet/GoogleService-Info.plist
echo ${{ secrets.ASC_API_KEY }} | base64 -d > apps/mobile/AscApiKey.p8
- name: Setup Credentials
run: |
mkdir apps/mobile/ios/certs
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"node": ">=16"
},
"scripts": {
"postinstall": "patch-package && yarn copy:inject",
"setup:env": "bash -c 'if [ ! -f .env ]; then cp .env.example .env; fi'",
"postinstall": "yarn setup:env && patch-package && yarn copy:inject",
"copy:inject": "bash development/copy-injected.sh",
"app:desktop": "yarn workspace @onekeyhq/desktop start",
"app:ext": "yarn workspace @onekeyhq/ext start",
Expand Down

0 comments on commit 444d0b9

Please sign in to comment.