-
Notifications
You must be signed in to change notification settings - Fork 118
Help needed to setup CI/CD for Web frameworks using Github Actions. #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello team, I am facing the same issue. I am trying to deploy my NextJS app to Firebase Hosting after enabling FIREBASE_CLI_EXPERIMENTS in Github Actions, I get the error message Suggested implementation of Github Actions: The details of the Github Action are here: It doesnt really help to allow us to develop apps with dynamic content if the whole dev workflow is not implemented. Would be great if this is looked at. |
@fahadahmed the core issue ATM is that Cloud Functions for Firebase don't support previews, it's either prod or nothing, so it doesn't fit well. This is something we're looking into but don't have timelines to share |
Hi @jamesdaniels , thanks for the reply. While not appropriate, will try and see if Github actions can be used to deploy to production. Might adapt the dev workflow to deploy to another Firebase project and tag it as staging. Thanks again for the quick response. |
any update on this? |
I am using next Js with dynamic content. Here's my workflow file:
`# This file was auto-generated by the Firebase CLI
https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MICROLIPA_F24FA }}'
projectId: microlipa-f24fa`
End the Job exits with this error:
Error: Web frameworks with dynamic content do not yet support deploying to preview channels
The process '/usr/local/bin/npx' failed with exit code 1
Error: The process '/usr/local/bin/npx' failed with exit code 1
The text was updated successfully, but these errors were encountered: