diff --git a/.circleci/config.yml b/.circleci/config.yml index 80d395b..1259328 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,14 @@ jobs: - checkout - run: npm install - run: npm run build - - run: ./node_modules/.bin/firebase deploy --token=$FIREBASE_DEPLOY_TOKEN --project=$FIREBASE_PROJECT_ID + # - run: ./node_modules/.bin/firebase deploy --token=$FIREBASE_DEPLOY_TOKEN --project=$FIREBASE_PROJECT_ID + - run: tar czf static_website.tar.gz public/* + - store_artifacts: + path: static_website.tar.gz + + # Trigger a new build of the deploy project + - run: curl -X POST --header "Content-Type: application/json" https://circleci.com/api/v1.1/project/github/PokeAPI/deploy/build?circle-token=$CIRCLECI_API_TOKEN + workflows: version: 2