From 4dcb2c8c897ba41c1bcbe38ccd518745d5fcd13a Mon Sep 17 00:00:00 2001 From: Zain Adam Date: Sat, 21 Oct 2023 23:24:05 +0800 Subject: [PATCH] fix: deploy cant be on another job --- .github/workflows/deploy_firebase.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy_firebase.yml b/.github/workflows/deploy_firebase.yml index 834a39c..f18afce 100644 --- a/.github/workflows/deploy_firebase.yml +++ b/.github/workflows/deploy_firebase.yml @@ -8,7 +8,7 @@ name: Deploy to Firebase Hosting on push - main jobs: # Build job - build: + build_and_deploy: runs-on: ubuntu-latest steps: - name: Checkout @@ -84,14 +84,10 @@ jobs: uses: actions/upload-pages-artifact@v2 with: path: ./_ssg/out - - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - uses: FirebaseExtended/action-hosting-deploy@v0 + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KAMUS_WEBDEV }}' channelId: live - projectId: kamus-webdev + projectId: kamus-webdev \ No newline at end of file