-
-
Save mohammed-atif/b71039a61f781ea3a5c87319e63459b8 to your computer and use it in GitHub Desktop.
Github Action script to test and deploy to firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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