Skip to content

Commit

Permalink
chore: setup credentials for deploy (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan authored Aug 17, 2024
1 parent 2414cc8 commit 6b19230
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 30 deletions.
13 changes: 7 additions & 6 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"projects": {
"default": "crossplatformkorea2024"
"default": "cross-platform-korea-5032f"
},
"targets": {
"crossplatformkorea2024": {
"cross-platform-korea-5032f": {
"hosting": {
"staging": [
"cpk-staging"
"cross-platform-korea-staging"
],
"app": [
"crossplatformkorea2024"
"cross-platform-korea-5032f"
]
}
}
},
"etags": {}
}
"etags": {},
"dataconnectEmulatorConfig": {}
}
10 changes: 5 additions & 5 deletions .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ jobs:
sed -i '/<\/head>/i \
<meta property="og:image" content="https://crossplatformkorea.com/img/hero.svg" />\n\
<meta property="og:type" content="website" />\n\
<meta property="og:url" content="https://cpk.dooboolab.com" />\n\
<meta property="og:url" content="https://app.crossplatformkorea.com" />\n\
<meta property="og:description" content="Cross-Platform Korea Community" />\n\
<meta property="og:title" content="Cross-Platform Korea" />\n\
<meta property="twitter:card" content="Cross-Platform Korea" />\n\
<meta property="twitter:url" content="https://cpk.dooboolab.com" />\n\
<meta property="twitter:url" content="https://app.crossplatformkorea.com" />\n\
<meta property="twitter:title" content="Cross-Platform Korea" />\n\
<meta property="twitter:description" content="Cross-Platform Korea Community" />\n' ./dist/index.html
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CROSSPLATFORMKOREA2024 }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CROSS_PLATFORM_KOREA_5032F }}'
channelId: live
projectId: crossplatformkorea2024
target: cpk-staging
projectId: cross-platform-korea-5032f
target: staging
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ jobs:
sed -i '/<\/head>/i \
<meta property="og:image" content="https://crossplatformkorea.com/img/hero.svg" />\n\
<meta property="og:type" content="website" />\n\
<meta property="og:url" content="https://cpk.dooboolab.com" />\n\
<meta property="og:url" content="https://app.crossplatformkorea.com" />\n\
<meta property="og:description" content="Cross-Platform Korea Community" />\n\
<meta property="og:title" content="Cross-Platform Korea" />\n\
<meta property="twitter:card" content="Cross-Platform Korea" />\n\
<meta property="twitter:url" content="https://cpk.dooboolab.com" />\n\
<meta property="twitter:url" content="https://app.crossplatformkorea.com" />\n\
<meta property="twitter:title" content="Cross-Platform Korea" />\n\
<meta property="twitter:description" content="Cross-Platform Korea Community" />\n' ./dist/index.html
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CROSSPLATFORMKOREA2024 }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CROSS_PLATFORM_KOREA_5032F }}'
channelId: live
projectId: crossplatformkorea2024
projectId: cross-platform-korea-5032f
11 changes: 6 additions & 5 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (process.env.STAGE) {
}

const DEEP_LINK_URL = '[firebaseAppId].web.app';
const buildNumber = 5;
const buildNumber = 1;

export default ({config}: ConfigContext): ExpoConfig => ({
...config,
Expand Down Expand Up @@ -83,7 +83,7 @@ export default ({config}: ConfigContext): ExpoConfig => ({
googleClientIdAndroid: process.env.googleClientIdAndroid,
googleClientIdIOS: process.env.googleClientIdIOS,
googleClientIdWeb: process.env.googleClientIdWeb,
eas: {projectId: 'bc7483f7-8ec6-409e-91a9-62a0f872c28b'},
eas: {projectId: '1a0107b0-1cef-4913-875f-639c38f59101'},
},
updates: {
fallbackToCacheTimeout: 0,
Expand All @@ -97,7 +97,7 @@ export default ({config}: ConfigContext): ExpoConfig => ({
},
ios: {
buildNumber: buildNumber.toString(),
bundleIdentifier: 'com.dooboolab.cpk',
bundleIdentifier: 'com.crossplatformkorea.app',
associatedDomains: [`applinks:${DEEP_LINK_URL}`],
supportsTablet: true,
entitlements: {
Expand All @@ -110,7 +110,7 @@ export default ({config}: ConfigContext): ExpoConfig => ({
CFBundleURLTypes: [
{
CFBundleURLSchemes: [
'com.googleusercontent.apps.407149235586-hnmknj6bpio4asa4ou56tkvtrrtl2d8e',
'com.googleusercontent.apps.428953626787-se8c0qsmoe5hjfmfhljk9ggijcvjtcbi',
],
},
],
Expand All @@ -119,6 +119,7 @@ export default ({config}: ConfigContext): ExpoConfig => ({
android: {
googleServicesFile: process.env.GOOGLE_SERVICES_ANDROID,
userInterfaceStyle: 'automatic',
versionCode: buildNumber,
permissions: [
'RECEIVE_BOOT_COMPLETED',
'CAMERA',
Expand All @@ -133,7 +134,7 @@ export default ({config}: ConfigContext): ExpoConfig => ({
foregroundImage: './assets/adaptive_icon.png',
backgroundColor: '#343434',
},
package: 'com.dooboolab.cpk',
package: 'com.crossplatformkorea.app',
intentFilters: [
{
action: 'VIEW',
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/apple-app-site-association
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"apps": [],
"details": [
{
"appID": "LCXV255WTL.com.dooboolab.cpk",
"appID": "PRDQGB267K.com.crossplatformkorea.app",
"paths": ["*"]
}
]
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"eas:dev:ios": "dotenv -e .env -- eas build --profile development --platform ios",
"eas:dev:android": "dotenv -e .env -- eas build --profile development --platform android",
"eas:prod:secrets": "eas secret:push --scope project --env-file .env.production",
"eas:prod:ios": "dotenv -e .env.production -- eas build --profile production --platform ios",
"eas:prod:ios": "eas build --profile production --platform ios",
"eas:prod:android": "dotenv -e .env.production -- eas build --profile production --platform android",
"eas:prod:android:local": "dotenv -e .env.production -- eas build --profile production --platform android --local",
"eas:prod:android:local": "eas build --profile production --platform android --local",
"eas:submit:ios": "dotenv -e .env.production -- eas submit --profile production --platform ios",
"eas:submit:android": "dotenv -e .env.production -- eas submit --profile production --platform android",
"generate:supabase": "bunx supabase gen types typescript --project-id \"dnwizkmicoxcnzlfeali\" --schema public > src/types/supabase.ts",
Expand All @@ -51,7 +51,7 @@
"base64-arraybuffer": "^1.0.2",
"date-fns": "^3.6.0",
"dooboo-ui": "^0.2.35",
"expo": "~51.0.26",
"expo": "~51.0.28",
"expo-apple-authentication": "~6.4.2",
"expo-auth-session": "^5.5.2",
"expo-constants": "~16.0.2",
Expand All @@ -64,7 +64,7 @@
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
"expo-notifications": "~0.28.15",
"expo-router": "~3.5.21",
"expo-router": "~3.5.23",
"expo-screen-orientation": "~7.0.5",
"expo-sharing": "~12.0.1",
"expo-splash-screen": "~0.27.5",
Expand Down Expand Up @@ -127,7 +127,7 @@
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-prettier": "^5.1.3",
"expo-build-properties": "~0.12.5",
"expo-dev-client": "~4.0.22",
"expo-dev-client": "~4.0.23",
"jest": "^29.7.0",
"jest-expo": "~51.0.3",
"jest-fetch-mock": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion public/.well-known/apple-app-site-association
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"apps": [],
"details": [
{
"appID": "[appleDevTeamId].com.dooboolab",
"appID": "PRDQGB267K.com.crossplatformkorea.app",
"paths": ["*"]
}
]
Expand Down
4 changes: 2 additions & 2 deletions public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
"relation": ["delegate_permission/handle_all_urls"],
"target": {
"namespace": "dooboo",
"package_name": "com.dooboolab",
"namespace": "cpk",
"package_name": "com.crossplatformkorea.app",
"sha256_cert_fingerprints": [
""
]
Expand Down
2 changes: 1 addition & 1 deletion src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const goToAppStore = (): void => {
if (Platform.OS === 'ios') {
Linking.openURL('itms-apps://itunes.apple.com/us/app/apple-store/<cpk-id>');
} else {
Linking.openURL('market://details?id=com.dooboolab.cpk');
Linking.openURL('market://details?id=com.crossplatformkorea.app');
}
};

Expand Down

0 comments on commit 6b19230

Please sign in to comment.