Skip to content

Instantly share code, notes, and snippets.

@mohammed-atif
Last active October 25, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohammed-atif/b71039a61f781ea3a5c87319e63459b8 to your computer and use it in GitHub Desktop.
Save mohammed-atif/b71039a61f781ea3a5c87319e63459b8 to your computer and use it in GitHub Desktop.
Github Action script to test and deploy to firebase
name: Deploy to firebase
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Setup the code
run: npm install
- name: Test the code
run: npm test
- name: Deploy to Firebase
uses: mohammed-atif/firebase-publish-react@v1.0
with:
firebase-token: ${{ secrets.FIREBASE_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment