Skip to content

Commit

Permalink
upload release
Browse files Browse the repository at this point in the history
  • Loading branch information
llc1123 committed Jun 7, 2021
1 parent 68bbc59 commit 198d0a1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push]
on: [push, pull_request]

name: nightly

Expand All @@ -24,6 +24,13 @@ jobs:
with:
name: build-windows
path: ./target/${{ matrix.target }}/release/trojan-rust.exe
- uses: svenstaro/upload-release-action@v1-release
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./target/${{ matrix.target }}/release/trojan-rust.exe
asset_name: trojan-rust-${{ matrix.target }}.exe
tag: ${{ github.ref }}

build-linux:
strategy:
Expand All @@ -47,3 +54,10 @@ jobs:
with:
name: build-${{ matrix.target }}
path: ./target/${{ matrix.target }}/release/trojan-rust
- uses: svenstaro/upload-release-action@v1-release
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./target/${{ matrix.target }}/release/trojan-rust
asset_name: trojan-rust-${{ matrix.target }}
tag: ${{ github.ref }}

0 comments on commit 198d0a1

Please sign in to comment.