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/windows.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/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 34714fdd4..96dc72c4a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -34,6 +34,7 @@ jobs: grep "Built target installer" build.log - name: create CI release + if: github.event_name == 'pull_request' uses: ./.github/actions/release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -46,3 +47,12 @@ jobs: BIN4: ./smtk2ssrf-installer.exe BIN5: ./smtk2ssrf.exe + - name: copy to transfer.sh + if: github.event_name == 'push' + run: | + apt-get install -y curl + curl --upload-file subsurface-installer.exe "https://transfer.sh/subsurface-installer.exe + curl --upload-file subsurface.exe "https://transfer.sh/subsurface.exe + curl --upload-file subsurface.exe.debug "https://transfer.sh/subsurface.exe.debug + curl --upload-file smtk2ssrf-installer.exe "https://transfer.sh/smtk2ssrf-installer.exe + curl --upload-file smtk2ssrf.exe "https://transfer.sh/smtk2ssrf.exe |