Skip to content

Commit

Permalink
Refactor GitHub workflows: Add Node.js setup and build script
Browse files Browse the repository at this point in the history
  • Loading branch information
evanalif113 committed Oct 31, 2024
1 parent 13d57c5 commit c55b737
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ jobs:
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAKLIMJERUKAGUNG }}
channelId: live
projectId: staklimjerukagung

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
firebase-debug.log
node_modules/
Dashboard-Pusdatin-Klimatologi.code-workspace
.github/workflows/firebase-hosting-merge.yml
.github/workflows/firebase-hosting-pull-request.yml
public/script/fireconfig.js
22 changes: 10 additions & 12 deletions public/script/fireconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ import { initializeApp } from "https://www.gstatic.com/firebasejs/10.14.1/fireba
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.14.1/firebase-analytics.js";

// Konfigurasi Firebase
// firebaseConfig.js
export const firebaseConfig = {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
databaseURL: process.env.FIREBASE_DATABASE_URL,
projectId: process.env.FIREBASE_PROJECT_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.FIREBASE_APP_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID,
};

const firebaseConfig = {
apiKey: "AIzaSyDalcCwwOthPMjC3umkpQECqlQQj699FTY",
authDomain: "staklimjerukagung.firebaseapp.com",
databaseURL: "https://staklimjerukagung-default-rtdb.asia-southeast1.firebasedatabase.app",
projectId: "staklimjerukagung",
storageBucket: "staklimjerukagung.appspot.com",
messagingSenderId: "763003005982",
appId: "1:763003005982:web:8ce295eda92c6b9112d20f",
measurementId: "G-DRL05TMRNT"
};

// Inisialisasi Firebase App
const app = initializeApp(firebaseConfig);
Expand Down

0 comments on commit c55b737

Please sign in to comment.