Skip to content

Commit

Permalink
Separate snapshot publish logic (facebook#288)
Browse files Browse the repository at this point in the history
Summary:
Snapshots should only ever be published off of master.
Pull Request resolved: facebook#288

Reviewed By: danielbuechele

Differential Revision: D10161974

Pulled By: passy

fbshipit-source-id: dca8463ff80de9d407758405c24e6511bef534d1
  • Loading branch information
passy authored and facebook-github-bot committed Oct 4, 2018
1 parent f39183b commit d69fb9e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -25,6 +32,10 @@ workflows:
build-and-deploy:
jobs:
- build
- snapshot:
filters:
branches:
only: master
- release:
filters:
tags:
Expand Down

0 comments on commit d69fb9e

Please sign in to comment.