From d69fb9e6a12929386876987916c894b1649228eb Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 4 Oct 2018 03:29:46 -0700 Subject: [PATCH] Separate snapshot publish logic (#288) Summary: Snapshots should only ever be published off of master. Pull Request resolved: https://github.com/facebook/flipper/pull/288 Reviewed By: danielbuechele Differential Revision: D10161974 Pulled By: passy fbshipit-source-id: dca8463ff80de9d407758405c24e6511bef534d1 --- .circleci/config.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 06060d915..23307abea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,9 +7,16 @@ jobs: - checkout - run: name: build and deploy - command: | - ./gradlew :sample:assembleDebug - scripts/publish-android-snapshot.sh + command: ./gradlew :sample:assembleDebug + + snapshot: + docker: + - image: circleci/android:api-28-ndk-r17b + steps: + - checkout + - run: + name: build and deploy + command: scripts/publish-android-snapshot.sh release: docker: @@ -25,6 +32,10 @@ workflows: build-and-deploy: jobs: - build + - snapshot: + filters: + branches: + only: master - release: filters: tags: