Skip to content

Instantly share code, notes, and snippets.

@nabeen
Created April 6, 2018 14:23
Show Gist options
  • Save nabeen/63537358533c9cebf23547f6a9f576d2 to your computer and use it in GitHub Desktop.
Save nabeen/63537358533c9cebf23547f6a9f576d2 to your computer and use it in GitHub Desktop.
gatsby build and deploy to firebase
box: node
build:
steps:
- script:
name: npm build
code: |
npm install -g gatsby
yarn install
gatsby build
deploy:
steps:
- script:
name: install firebase-tools
code: |
npm install -g firebase-tools
- script:
name: deploy firebase
code: |
firebase deploy --project "$FIREBASE_PROJECT" --token "$FIREBASE_TOKEN" --only hosting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment