@@ -30,15 +30,24 @@ jobs:
30
30
- uses : katyo/publish-crates@v1
31
31
with :
32
32
registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
33
+
34
+ - name : create-new-release
35
+ uses : softprops/action-gh-release@v1
36
+ with :
37
+ generate_release_notes : true
38
+ files : |
39
+ CHANGELOG.md
40
+ README.md
41
+ SECURITY.md
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
44
34
- release-and- deploy-new-musl-binary :
45
+ deploy-new-package :
35
46
name : release new musl binary and deploy
36
47
runs-on : ubuntu-latest
37
48
environment : production
38
49
steps :
39
50
- uses : actions/checkout@v3
40
- with :
41
- rust-version : stable
42
51
43
52
- uses : actions/cache@v3
44
53
with :
@@ -51,27 +60,18 @@ jobs:
51
60
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
52
61
53
62
- name : Fetch musl-rust image
54
- run : docker pull clux/muslrust
63
+ run : |
64
+ docker pull clux/muslrust
65
+
55
66
- name : Build rust release binary
56
67
run : |
57
68
rustup target add x86_64-unknown-linux-musl
58
69
docker run -v $PWD:/volume --rm -t clux/muslrust cargo build --release --target x86_64-unknown-linux-musl
70
+
59
71
- name : package lambda zip for release
60
72
run : |
61
73
zip -j lambda.zip ./target/x86_64-unknown-linux-musl/release/bootstrap
62
- ln -s lambda.zip terraform/lambda.zip
63
- - name : create-new-release
64
- uses : softprops/action-gh-release@v1
65
- with :
66
- generate_release_notes : true
67
- files : |
68
- CHANGELOG.md
69
- README.md
70
- SECURITY.md
71
- LICENSE
72
- lambda.zip
73
- env :
74
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
+ cp lambda.zip terraform/lambda.zip
75
75
76
76
- name : Setup Terraform
77
77
uses : hashicorp/setup-terraform@v2
0 commit comments