diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-10-03 13:20:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 13:20:59 -0400 |
| commit | d9acc5b17e8bc465ec88f922876eecab5a72047c (patch) | |
| tree | b666da39c47a16e6e80f2dbdf03107dec01bff0c /.github/workflows | |
| parent | aa34c1df6a4520c1e9f0da55289eb00434d6118f (diff) | |
Remove travis and appveyor. Release with github actions (#3052)
Fixes #2979
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc17b23f5..f4014c9bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,5 +108,29 @@ jobs: cat /proc/cpuinfo cat /proc/meminfo + - name: Pre-release (linux) + if: startsWith(matrix.os, 'ubuntu') + run: gzip -c target/release/deno > target/release/deno_linux_x64.gz + + - name: Pre-release (mac) + if: startsWith(matrix.os, 'macOS') + run: gzip -c target/release/deno > target/release/deno_osx_x64.gz + + - name: Pre-release (windows) + if: startsWith(matrix.os, 'windows') + run: PowerShell -Command "& {Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno_win_x64.zip}" + + - name: Release + uses: softprops/action-gh-release@v1 + if: matrix.kind == 'test' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + target/release/deno_win_x64.zip + target/release/deno_linux_x64.gz + target/release/deno_osx_x64.gz + draft: true + - name: Stop sccache run: sccache --stop-server |
