From fc650868a5b29ed1940b43f779136569ebabab67 Mon Sep 17 00:00:00 2001 From: Charles Marttinen Date: Mon, 29 Oct 2018 23:48:44 -0400 Subject: [PATCH 1/2] feat: Update CircleCI config to store artifacts --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 80d395b..7f4ca5f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,11 @@ 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 + workflows: version: 2 From 6aa85ecf6f6566992d10b982f7d9b80a27573d24 Mon Sep 17 00:00:00 2001 From: Charles Marttinen Date: Tue, 30 Oct 2018 00:03:07 -0400 Subject: [PATCH 2/2] feat: Update CircleCI config to trigger a build of 'deploy' --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f4ca5f..1259328 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,9 @@ jobs: - 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