Skip to content

Commit

Permalink
Only publish JOSM update site on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed Jun 11, 2018
1 parent f444e52 commit f33b086
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .circleci/config.yml
Expand Up @@ -63,14 +63,16 @@ jobs:
path: ./build/tmp/jar/MANIFEST.MF
destination: dist/MANIFEST.MF
- run: |
git fetch origin gh-pages
git checkout gh-pages
cp ./build/pluginMasterSnapshots .
git stage pluginMasterSnapshots
git config user.name "CircleCI $CIRCLE_BUILD_NUM"
git config user.email "deploy@circleci"
git commit -m "[ci skip] Update plugin update site for JOSM with latest version from master branch"
git push -q https://${GITHUB_TOKEN}@github.com/JOSM/wikipedia.git gh-pages > /dev/null 2>&1
if [ "$CIRCLE_BRANCH" == "master" ]; then
git fetch origin gh-pages
git checkout gh-pages
cp ./build/pluginMasterSnapshots .
git stage pluginMasterSnapshots
git config user.name "CircleCI $CIRCLE_BUILD_NUM"
git config user.email "deploy@circleci"
git commit -m "[ci skip] Update plugin update site for JOSM with latest version from master branch"
git push -q https://${GITHUB_TOKEN}@github.com/JOSM/wikipedia.git gh-pages > /dev/null 2>&1
fi
min-josm:
docker: *jdk8_image
Expand Down

0 comments on commit f33b086

Please sign in to comment.