firebase-action | GitHub Action for Firebase | Authentication library
kandi X-RAY | firebase-action Summary
kandi X-RAY | firebase-action Summary
The GitHub Action for Firebase and wraps the firebase-tools CLI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-action
firebase-action Key Features
firebase-action Examples and Code Snippets
Community Discussions
Trending Discussions on firebase-action
QUESTION
I have been trying to automate the deployment of firebase cloud functions using the Github actions CI/CD workflows. The functions are developed using NodeJs, Express, and Typescript. And all environment variables are saved in a .env file that is not tracked on github (for obvious reasons)
The main.yaml file (in .github/workflows/)
...ANSWER
Answered 2021-Jul-06 at 12:34I solved this problem. The answer was very simple: instead of following the different tutorials that use "w9jds/firebase-action@master" for the deployment, I simply used firebase deploy :)
The new main.yaml
QUESTION
Let's say I have a basic github action that builds my application, then deploys it to firebase:
...ANSWER
Answered 2021-Apr-12 at 13:39Here is documentation for how to add a workflow status badge.
The status badge represents an image - .png
this image is automatically updated by GitHub - e.g if your workflow is:
- successful the badge will be "green" and the status "success"
- failing the badge will be "red" and the status "failed"
The first part of the badge is the name of the workflow (either the name:
attribute or the name of the file)
You can also use the UI to generate a badge. See more in this answer.
Q: Do I need to have the badge in my readme before I run the action?
A: No you can add it anytime, if you add it before the workflow it shows no information (gray coloring). Keep in mind that you may need to "force refresh" the browser to see the new image (browser caching images)
Q: Is the build badge a stable url, or is it changed by the action at runtime?
A: It is as stable as the name of the workflow - if you change the name the badge will stop working.
Q: Is this something you can even do with actions or do you need to use travis-ci?
A: It is GitHub Action functionality, you do not need Travis-CI
QUESTION
I'm following this tutorial on setting up CI/CD with github actions for a react app. I want the action to build and deploy my react app to my firebase project for hosting. I'm fairly sure I'm followed the directions, but when I trigger my action with a push, I get this error:
...ANSWER
Answered 2021-Apr-12 at 02:03Seems like removing /build
from my .gitignore solved the problem. I'm not %100 sure why though, as none of the examples of similar actions I have seen include their build folders.
QUESTION
I just created my first GitHub actions workflow, however, it is not quite working as I intend. I am trying to create a CI/CD pipeline to host my React web app on Firebase whenever I push to the main branch in the repository. I would appreciate any help
...ANSWER
Answered 2021-Mar-18 at 10:03I didn't know about environmental secrets. For example, it doesn't show up in my environment yet. In that case, how about using Secrets? The syntax (${{ secrets.FIREBASE_TOKEN }}
) is correct.
QUESTION
I'm trying to deploy a Nuxt app to firebase hosting using github actions...
The deploy worked fine until I added my firebase config to .env - it runs fine on localhost but when deployed the api key and other config doesn't seem to be registering.
.env
...ANSWER
Answered 2021-Jan-19 at 03:31The environment variables were being run on yarn install instead of on yarn generate...
deploy.yml
QUESTION
Background
Firebase Authentication sends out emails for registration, password change etc. These emails contain links with the internal Firebase name of my project.
Problem
I want to replace that internal name with my custom domain, which seems to be possible by changing the Action URL and using a Dynamic Link.
I do not want to handle the email actions with my own code, but just replace the Firebase domain with a custom domain. It is about sending emails that are containing links with a custom domain and thus look nice.
Existing Answer
An answer exists, but I do not understand how this exactly works. And I am not able to comment as my reputation is too low.
Illustration
...ANSWER
Answered 2020-Nov-05 at 09:57The procedure is very well explained in this documentaion. you have to:
1- create the email action handler page
2- link that page to your email template in the customize action url
QUESTION
I need to write safe security rules for a flutter project that doesn't require user authentication (for a reason) for creating new documents. For all other actions you need to be authenticated. People are only allowed to create a document if they use the app too.
Is it sufficient if I just limit the amount of created documents in a specific time (with timestamps) and also limit the size, or do I still need to consider something else?
I'm new to firebase but I kind of know that there are ways to do firebase-actions without the app (that will be creatable from the project) via commands if you just get the project-id. For example that would be a case which I haven't considered yet.
Regarding the last point: There are three Api keys in the google cloud platform firebase project: An Android key, an IOS key and a browser key. (auto created by Firebase) I thought, maybe if I'd apply a restriction to the Android key, so that only Android apps can use it and likewise for the IOS key, the problem could be solved, but I'm not sure. (I then would restrict the keys via the Google Cloud Platform Project of the Firebase Project.)
...ANSWER
Answered 2020-Oct-13 at 14:34People are only allowed to create a document if they use the app too.
This requirement is not enforceable on Firebase. Anyone can take the configuration data from your app, and use that to call the same APIs in the same way. As long as the calls meet your security rules, they will be allowed. And since there's no security rule clause that says "only from my app", you can't limit access to only people using your app.
Is it sufficient if I just limit the amount of created documents in a specific time (with timestamps) and also limit the size, or do I still need to consider something else?
How do you want to limit the document creation in time? If you want to do this per user, you'll need to know the user.
I recommend looking into Firebase's anonymous authentication, which gives user's of your app an ID without requiring them to enter credentials.
QUESTION
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: build
path: build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
...ANSWER
Answered 2020-Jun-06 at 12:47You're probably unpacking artifact to root directory instead of build/
.
I'm guessing article was written for download-artifact@v1
while you are using download-artifact@v2
(as that's where master
points currently). Difference between both is discussed here.
I'd verify first what is going on after artifact is downloaded
QUESTION
I am trying to accomplish build/deploy my react app that uses Firebase(for now only auth module) using github actions with secrets. For local development I use .env file with webpack and dotenv-webpack library. On local machine all works fine. Dev server get environment varialbles from .env file and inject it. But after build in github actions and deploying package on firebase hosting page return me an error:
...ANSWER
Answered 2020-Aug-13 at 22:40name: Firebase Deploy
on:
push:
branches:
- master
env:
REACT_APP_API_FB_KEY: ${{ secrets.REACT_APP_API_FB_KEY }}
REACT_APP_FB_AUTH_DOMAIN: ${{ secrets.REACT_APP_FB_AUTH_DOMAIN }}
REACT_APP_FB_DATABASE_URL: ${{ secrets.REACT_APP_FB_DATABASE_URL }}
REACT_APP_FB_PROJECT_ID: ${{ secrets.FB_PROJECT_ID }}
REACT_APP_FB_STORAGE_BUCKET: ${{ secrets.FB_STORAGE_BUCKET }}
REACT_APP_FB_MESSAGING_SENDER_ID: ${{ secrets.FB_MESSAGING_SENDER_ID }}
obs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
...
QUESTION
I'm trying to use Github actions to deploy my Angular app to Firebase hosting. I'm using this action in order to accomplish this. My release.yml
file looks like the following:
ANSWER
Answered 2020-Jul-07 at 01:24I seemed to have fixed the issue by just simply removing the second section of hosting turning this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page