Created
February 25, 2020 15:58
-
-
Save ddo/e6c9e3d7d059e1cde4859299293b3ae1 to your computer and use it in GitHub Desktop.
github actions > firebase deploy
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10.x' | |
- name: Install Yarn | |
run: curl -o- -L https://yarnpkg.com/install.sh | bash | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Install Functions Dependencies | |
working-directory: functions | |
run: yarn | |
- name: Deploy to Firebase | |
run: npx firebase-tools deploy --token $FIREBASE_TOKEN | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is great!