Skip to content

Commit

Permalink
ci: GitHub actions release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma-s1n committed Sep 27, 2023
1 parent 5695367 commit 12d0212
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- 'v*.*.**'

env:
CARGO_TERM_COLOR: always

jobs:
deb-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-musl
- uses: taiki-e/install-action@v2
with:
tool: cargo-deb
- run: cargo deb --target x86_64-unknown-linux-musl
- uses: softprops/action-gh-release@v1
with:
files: target/x86_64-unknown-linux-musl/debian/shh_*.deb
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Automatic [systemd](https://systemd.io/) service hardening guided by [strace](https://strace.io/) profiling.

## Installation from source
## Installation

### From source

You need a Rust build environment for example from [rustup](https://rustup.rs/).

Expand All @@ -11,6 +13,10 @@ cargo build --release
install -Dm 755 -t /usr/local/bin target/release/shh
```

### Debian

See [GitHub releases](https://github.com/synacktiv/shh/releases) for Debian packages built for each tagged version.

## Usage

To harden a system unit named `SERVICE.service`:
Expand Down

0 comments on commit 12d0212

Please sign in to comment.