DEV Community

loading...
Cover image for Deploy to firebase without external action

Deploy to firebase without external action

thongnt profile image Thông Nguyễn ・1 min read

My Workflow

This github action template allow you to deploy you react app to Firebase hosting without using external action.

Submission Category:

DIY Deployments

Yaml File or Link to Code

GitHub logo trthong95 / url-shortener

An url shortener built with Reactjs and hosted on Firebase

Simple URL Shortener Example

Build & Deploy

  • Shorten url then save the result to Firebase
  • Get the origin url then redirect to it

How to deploy this example ?

To deploy this example to firebase hosting please specify these 2 variables in github secret.

FIREBASE_TOKEN=<firebase-deploy-token>
FIREBASE_CONFIG='{"apiKey": "","authDomain": "","databaseURL":"","projectId": "","storageBucket": "","messagingSenderId": "","appId": "","measurementId": ""}'

You can find these config in firebase document.

Firebase token

Firebase config object

Demo

short.thongnt.space




Discussion (0)

Forem Open with the Forem app