Created
October 28, 2020 01:30
-
-
Save Tittoh/f0d873a4766b62b157121dc63bd2775c to your computer and use it in GitHub Desktop.
Git workflow to deploy Firebase applications
This file contains hidden or 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: CI/CD | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Build | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Firebase Deploy | |
| run: | | |
| sudo npm install -g firebase-tools | |
| firebase deploy --token ${{ secrets.FIREBASE_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment