'How do i securely deploy to firebase using a github workflow?

I'm a novice to web development, and I'm making a website with react.js. I have a workflow set up with Github to deploy the website to Firebase Hosting whenever i push/PR. The problem is, i have a config.js file that is gitignored because it contains the authentication to the firestore database for the site. The workflow will fail because there is no config.js (since i import it).

How can i deploy to Firebase through Github while keeping the configuration secure?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source