Skip to content

Commit c97eb47

Browse files
committed
update rust.yml
update rust.yml update rust.yml update rust.yml update rust.yml update rust.yml update rust.yml
1 parent 90fcca3 commit c97eb47

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/rust.yml

+24
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Rust
33
on:
44
push:
55
branches: [ master ]
6+
tags:
7+
- 'v*.*.*'
68

79
env:
810
CARGO_TERM_COLOR: always
@@ -37,3 +39,25 @@ jobs:
3739
path: |
3840
target/release/ksm2usc-score-import*
3941
!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+

0 commit comments

Comments
 (0)