Skip to content

Commit

Permalink
Update the deploy to firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Apr 15, 2024
1 parent b96660a commit 15a2714
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
}
}
}
}
}
12 changes: 6 additions & 6 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
export NODE_OPTIONS=--max_old_space_size=4096
CI=false yarn web build
- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_CI_PROD}}
# Something is wrong with firebase-tools in the CI
run: |
npx firebase use $FB_PROJECT --token $FIREBASE_TOKEN
npx firebase deploy --only $FB_HOSTING --token $FIREBASE_TOKEN -m "CI deploy ${{ steps.get_version.outputs.VERSION }}" --non-interactive
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COH2_LADDERS_PROD }}"
target: coh2-ladders-dev
projectId: coh2-ladders-prod
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
run: sleep 240s
shell: bash
- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_CI_PROD}}
# Something is wrong with firebase-tools in the CI
run: |
npx firebase use $FB_PROJECT --token $FIREBASE_TOKEN
npx firebase deploy --only $FB_HOSTING --token $FIREBASE_TOKEN -m "CI deploy ${{ steps.get_version.outputs.VERSION }}" --non-interactive
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COH2_LADDERS_PROD }}"
target: coh2-ladders-prod
projectId: coh2-ladders-prod

0 comments on commit 15a2714

Please sign in to comment.