Commit c97eb47 1 parent 90fcca3 commit c97eb47 Copy full SHA for c97eb47
File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Rust
3
3
on :
4
4
push :
5
5
branches : [ master ]
6
+ tags :
7
+ - ' v*.*.*'
6
8
7
9
env :
8
10
CARGO_TERM_COLOR : always
37
39
path : |
38
40
target/release/ksm2usc-score-import*
39
41
!target/release/ksm2usc-score-import.d
42
+ publish :
43
+ runs-on : ubuntu-latest
44
+ needs : build
45
+ if : startsWith(github.ref, 'refs/tags/')
46
+ steps :
47
+ - uses : actions/download-artifact@v2
48
+ with :
49
+ path : ~/artifacts
50
+ - name : Rename files
51
+ run : |
52
+ tar -czf ksm2usc-score-import-Linux.tar.gz ~/artifacts/ksm2usc-score-import-Linux/ksm2usc-score-import
53
+ tar -czf ksm2usc-score-import-macOS.tar.gz ~/artifacts/ksm2usc-score-import-macOS/ksm2usc-score-import
54
+ - name : Release
55
+ uses : softprops/action-gh-release@v1
56
+ with :
57
+ files : |
58
+ /home/runner/artifacts/ksm2usc-score-import-Windows/ksm2usc-score-import.exe
59
+ ksm2usc-score-import-Linux.tar.gz
60
+ ksm2usc-score-import-macOS.tar.gz
61
+ env :
62
+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
63
+
You can’t perform that action at this time.
0 commit comments