@@ -3,6 +3,7 @@ name: Deploy
33on :
44 release :
55 types : [ published ]
6+ workflow_dispatch :
67
78env :
89 CARGO_TERM_COLOR : always
@@ -15,10 +16,10 @@ jobs:
1516 fail-fast : false
1617 matrix :
1718 config :
18- - { os: windows-latest, target: 'x86_64-pc-windows-msvc' }
19- - { os: macOS-11, target: 'x86_64-apple-darwin' }
20- - { os: ubuntu-20.04, target: 'x86_64-unknown-linux-gnu' }
21- - { os: ubuntu-20.04, target: 'x86_64-unknown-linux-musl' }
19+ - { os: windows-latest, target: 'x86_64-pc-windows-msvc', suffix: '-win-x86_64' }
20+ - { os: macOS-11, target: 'x86_64-apple-darwin', suffix: '-mac-x86_64' }
21+ - { os: ubuntu-20.04, target: 'x86_64-unknown-linux-gnu', suffix: '-linux-x86_64' }
22+ - { os: ubuntu-20.04, target: 'x86_64-unknown-linux-musl', suffix: '-linux-muls-x86_64' }
2223
2324 steps :
2425 - name : Update Rust toolchain
2829 - uses : actions/checkout@v2
2930 - name : Build
3031 run : cargo build --verbose --release
32+ - name : Copy
33+ run : cp target/release/csv2dynamodb target/release/csv2dynamodb${{ matrix.config.suffix }}
3134
32- - name : Archive Artifacts
33- uses : actions/upload-artifact@v2
35+ - name : Release
36+ uses : softprops/action-gh-release@v1
37+ if : startsWith(github.ref, 'refs/tags/')
3438 with :
35- name : " App-Artifacts"
36- path : target/release/csv2dynamodb
39+ files : |
40+ target/release/csv2dynamodb${{ matrix.config.suffix }}
41+ LICENSE
0 commit comments