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/mac.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/mac.yml')
-rw-r--r-- | .github/workflows/mac.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index b6caf0817..3b2ea67c8 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -96,6 +96,7 @@ jobs: with: name: Subsurface.app.zip - name: create CI release + if: github.event_name == 'pull_request' uses: ./.github/actions/release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -103,3 +104,8 @@ jobs: REF: ${{ github.ref }} COMMIT: ${{ github.sha }} BIN1: Subsurface.app.zip + + - name: copy to transfer.sh + if: github.event_name == 'push' + run: | + curl --upload-file Subsurface.app.zip "https://transfer.sh/Subsurface.app.zip" |