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>
This commit is contained in:
Dirk Hohndel 2019-10-25 16:53:48 -04:00
parent a07c2feb95
commit f83505b554
4 changed files with 30 additions and 0 deletions

View file

@ -17,6 +17,7 @@ jobs:
bash -x subsurface/.github/workflows/scripts/linux-in-container-build.sh
- name: create CI release
if: github.event_name == 'pull_request'
uses: ./.github/actions/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -24,3 +25,9 @@ jobs:
REF: ${{ github.ref }}
COMMIT: ${{ github.sha }}
BIN1: ./Subsurface.AppImage
- name: copy to transfer.sh
if: github.event_name == 'push'
run: |
apt-get install -y curl
curl --upload-file Subsurface.AppImage "https://transfer.sh/Subsurface.AppImage