1
0
Fork 0
mirror of https://github.com/sensebox/blockly-app synced 2025-04-05 17:30:28 +02:00

CI: dont deploy releases to fdroid branch (#5)

not needed anymore as fdroid is now configured to build from source
This commit is contained in:
Norwin 2019-04-27 14:58:27 +02:00
parent 7608509bcc
commit 15c0680158
2 changed files with 0 additions and 23 deletions

View file

@ -27,10 +27,3 @@ deploy:
on:
tags: true
local_dir: www
# deploy android project for fdroid builds
- provider: script
script: bash tools/deploy-fdroid.sh
skip-cleanup: true
on:
tags: true

View file

@ -1,16 +0,0 @@
#!/bin/bash
# expects travis env vars: $TRAVIS_TAG, $GITHUB_TOKEN
rev=$(git rev-parse --short HEAD)
target=https://$GITHUB_TOKEN@github.com/sensebox/blockly-app.git
branch=fdroid
git clone --depth=1 -b $branch $target fdroid
rm -rf fdroid/*
mv -f platforms/android/* fdroid/
cd fdroid
git config user.name "Travis-CI"
git config user.email "travis@travis-ci.org"
git add -f --ignore-errors .
git commit -m "android project for $TRAVIS_TAG at $rev" --amend # dont add new commits to avoid increasing repo size
git push -f $target $branch > /dev/null 2>&1 # hide output to not leak GITHUB_TOKEN in logs