diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-25 16:53:48 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-25 18:32:50 -0700 |
commit | f83505b554e0a0ac43dab5ce8503fbc100689644 (patch) | |
tree | 0ec3edf07249ff411d6d2d08fed8b214e4ed1d46 /.github/workflows/android.yml | |
parent | a07c2feb9526e82111374bcac98deab7fbb71345 (diff) | |
download | subsurface-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.yml | 7 |
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 |