Skip to content

Commit 04fd6f1

Browse files
committed
Fix the deploy workflow
1 parent 3e2c453 commit 04fd6f1

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Build
22

33
on:
4+
push:
45
pull_request:
56
branches: [ main ]
67

8+
workflow_dispatch:
9+
710
env:
811
CARGO_TERM_COLOR: always
912

.github/workflows/deploy.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Deploy
33
on:
44
release:
55
types: [ published ]
6+
workflow_dispatch:
67

78
env:
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
@@ -28,9 +29,13 @@ jobs:
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

Comments
 (0)