File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ on :
3+ release :
4+ types :
5+ - created
6+ jobs :
7+ cancel-previous-runs :
8+ name : Cancel Previous Runs
9+ runs-on : ubuntu-20.04
10+ steps :
11+ - name : Cancel Previous Runs
12+ 13+ with :
14+ access_token : ${{ github.token }}
15+ release :
16+ name : release ${{ matrix.target }}
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os :
21+ - macos-latest
22+ - ubuntu-latest
23+ - windows-latest
24+ runs-on : ${{ matrix.os }}
25+ steps :
26+ - uses : actions/checkout@v2
27+ with :
28+ ref : ${{ github.ref }}
29+ - name : Install Cargo
30+ run : curl https://sh.rustup.rs -sSf | sh
31+ - name : Build
32+ run : cargo build --release
33+ - name : Upload binaries to release
34+ uses : svenstaro/upload-release-action@v2
35+ with :
36+ repo_token : ${{ secrets.GITHUB_TOKEN }}
37+ file : target/release/rewatch
38+ asset_name : rewatch-${{ matrix.os }}
39+ tag : ${{ github.ref }}
40+ overwrite : true
41+
You can’t perform that action at this time.
0 commit comments