Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@ jobs:
- image: circleci/node:10.11.0
steps:
- checkout

# Get stored artifacts from api-data and unpack into the 'public' directory
- run: wget $(curl -s 'https://circleci.com/api/v1.1/project/github/PokeAPI/api-data/latest/artifacts?branch=master' | jq -r .[0].url)
- run: mkdir -p public && tar xzf _gen.tar.gz -C public

# Get stored artifacts from pokeapi.co and unpack into the 'public' directory
- run: wget $(curl -s 'https://circleci.com/api/v1.1/project/github/PokeAPI/pokeapi.co/latest/artifacts?branch=master' | jq -r .[0].url)
- run: mkdir -p public && tar xzf static_website.tar.gz -C public

# Deploy to Firebase
- run: yarn --cwd functions install
- run: functions/node_modules/.bin/firebase deploy --token=$FIREBASE_DEPLOY_TOKEN --project=$FIREBASE_PROJECT_ID


workflows:
version: 2
commit:
Expand Down