diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index a282a66..aa59a54 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -44,7 +44,7 @@ jobs: with: name: ${{ secrets.FIREBASE_JSON_FILENAME }} json: ${{ secrets.FIREBASE_JSON }} - dir: 'src/main/resources/firebase/' + dir: 'src/main/resources' - name: Build with Gradle run: | diff --git a/.gitignore b/.gitignore index bb67412..40e5de7 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,4 @@ out/ ### classpath ### application.properties p8_key.txt -firebase \ No newline at end of file +igo-money-firebase-adminsdk.json \ No newline at end of file diff --git a/src/main/java/igoMoney/BE/common/config/FCMConfig.java b/src/main/java/igoMoney/BE/common/config/FCMConfig.java index 4a1ee3c..1d98762 100644 --- a/src/main/java/igoMoney/BE/common/config/FCMConfig.java +++ b/src/main/java/igoMoney/BE/common/config/FCMConfig.java @@ -21,7 +21,7 @@ public class FCMConfig { @Bean FirebaseMessaging init() throws IOException { - ClassPathResource resource = new ClassPathResource("firebase/"+firebaseJsonFileName+".json"); + ClassPathResource resource = new ClassPathResource(firebaseJsonFileName+".json"); InputStream refreshToken = resource.getInputStream(); FirebaseApp firebaseApp = null; List firebaseAppList = FirebaseApp.getApps();