Skip to content

Commit

Permalink
Refactor GitHub workflows: Remove Node.js setup and dependency instal…
Browse files Browse the repository at this point in the history
…lation
  • Loading branch information
evanalif113 committed Oct 31, 2024
1 parent 1522d3a commit 79c5def
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 36 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/deploy.yaml

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
Expand All @@ -11,11 +8,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#- run: npm ci && npm run build

# Menambahkan environment variables dari GitHub Secrets untuk Firebase
- name: Build project
env:
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }}
FIREBASE_DATABASE_URL: ${{ secrets.FIREBASE_DATABASE_URL }}
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }}
FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.FIREBASE_MESSAGING_SENDER_ID }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
FIREBASE_MEASUREMENT_ID: ${{ secrets.FIREBASE_MEASUREMENT_ID }}
run: npm run build

# Deploy ke Firebase Hosting
- uses: FirebaseExtended/action-hosting-deploy@v0.9.0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAKLIMJERUKAGUNG }}
channelId: live
projectId: staklimjerukagung

projectId: staklimjerukagung

0 comments on commit 79c5def

Please sign in to comment.