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

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3ck committed Jun 25, 2022
1 parent 063db02 commit 8c88c9d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: Build & Run Tests

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

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


- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,24 @@ jobs:
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: create-new-release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
CHANGELOG.md
README.md
SECURITY.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-and-deploy-new-musl-binary:
deploy-new-package:
name: release new musl binary and deploy
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
with:
rust-version: stable

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

- name: Fetch musl-rust image
run: docker pull clux/muslrust
run: |
docker pull clux/muslrust
- name: Build rust release binary
run: |
rustup target add x86_64-unknown-linux-musl
docker run -v $PWD:/volume --rm -t clux/muslrust cargo build --release --target x86_64-unknown-linux-musl
- name: package lambda zip for release
run: |
zip -j lambda.zip ./target/x86_64-unknown-linux-musl/release/bootstrap
ln -s lambda.zip terraform/lambda.zip
- name: create-new-release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
CHANGELOG.md
README.md
SECURITY.md
LICENSE
lambda.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
cp lambda.zip terraform/lambda.zip
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]


## [Released]

## [0.2.1] - 2022-06-24
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ name = "config"
path = "src/config.rs"

[profile.release]
overflow-checks = true
panic = "abort"
strip = "debuginfo"


[dependencies]
charset = "0.1"
Expand Down

0 comments on commit 8c88c9d

Please sign in to comment.