Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit 8c88c9d

Browse files
committed
Fix release script
1 parent 063db02 commit 8c88c9d

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Build & Run Tests
44

55
on: [push, pull_request]
6-
6+
77
env:
88
CARGO_TERM_COLOR: always
99

@@ -29,7 +29,6 @@ jobs:
2929
target/
3030
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3131

32-
3332
- uses: actions-rs/toolchain@v1
3433
with:
3534
profile: minimal

.github/workflows/release.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,24 @@ jobs:
3030
- uses: katyo/publish-crates@v1
3131
with:
3232
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 }}
3344

34-
release-and-deploy-new-musl-binary:
45+
deploy-new-package:
3546
name: release new musl binary and deploy
3647
runs-on: ubuntu-latest
3748
environment: production
3849
steps:
3950
- uses: actions/checkout@v3
40-
with:
41-
rust-version: stable
4251

4352
- uses: actions/cache@v3
4453
with:
@@ -51,27 +60,18 @@ jobs:
5160
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5261

5362
- name: Fetch musl-rust image
54-
run: docker pull clux/muslrust
63+
run: |
64+
docker pull clux/muslrust
65+
5566
- name: Build rust release binary
5667
run: |
5768
rustup target add x86_64-unknown-linux-musl
5869
docker run -v $PWD:/volume --rm -t clux/muslrust cargo build --release --target x86_64-unknown-linux-musl
70+
5971
- name: package lambda zip for release
6072
run: |
6173
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
7575
7676
- name: Setup Terraform
7777
uses: hashicorp/setup-terraform@v2

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
1011
## [Released]
1112

1213
## [0.2.1] - 2022-06-24

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ name = "config"
2424
path = "src/config.rs"
2525

2626
[profile.release]
27-
overflow-checks = true
2827
panic = "abort"
29-
strip = "debuginfo"
28+
3029

3130
[dependencies]
3231
charset = "0.1"

0 commit comments

Comments
 (0)