summaryrefslogtreecommitdiffstats
path: root/.github/workflows/android.yml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-25 16:53:48 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-25 18:32:50 -0700
commitf83505b554e0a0ac43dab5ce8503fbc100689644 (patch)
tree0ec3edf07249ff411d6d2d08fed8b214e4ed1d46 /.github/workflows/android.yml
parenta07c2feb9526e82111374bcac98deab7fbb71345 (diff)
downloadsubsurface-f83505b554e0a0ac43dab5ce8503fbc100689644.tar.gz
GitHub Actions: push to transfer.sh for PRs, post release for pushes
This means that PRs from people using the main repo for their staging branches will get both transfer.sh and a release. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.github/workflows/android.yml')
-rw-r--r--.github/workflows/android.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 4f6d0425e..cfb22b357 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -23,6 +23,7 @@ jobs:
cp /__w/subsurface/subsurface-mobile-build-arm//build/outputs/apk/debug/subsurface-mobile-build-arm-debug.apk ${GITHUB_WORKSPACE}/Subsurface-mobile.apk
- name: create CI release
+ if: github.event_name == 'pull_request'
uses: ./.github/actions/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -32,3 +33,9 @@ jobs:
BIN1: ./Subsurface-mobile.apk
BIN2: ./Subsurface-mobile.arm64.apk
+ - name: copy to transfer.sh
+ if: github.event_name == 'push'
+ run: |
+ apt-get install -y curl
+ curl --upload-file Subsurface-mobile.apk "https://transfer.sh/Subsurface-mobile.apk
+ curl --upload-file Subsurface-mobile.arm64.apk "https://transfer.sh/Subsurface-mobile.arm64.apk