action-hosting-deploy
action-hosting-deploy copied to clipboard
[BUG] API key missing or invalid
Action config
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MYPROJ_DEV }}"
expires: 20d
projectId: myproj
I could not using firebase init hosting:github
. Possibly because its a private repo.
I have the repository secret for the specific action, as per this.
I also added a Debug step to echo it to be sure. It is the JSON that I had created for the service account.
However, the deployed website tells me that the api key is invalid.
Error message
{code: 'auth/invalid-api-key', message: 'Your API key is invalid, please check you have copied it correctly.', a: null}
Expected behavior
Deployed site works.
Actual behavior
Does not load.
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_LAWVITE_DEV }}"
expires: 20d
projectId: lawvite
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_LAWVITE_DEV }}"
expires: 20d
projectId: lawvite
Not sure I follow
@Hallerf Are you saying you got it to work by pasting the action twice?