-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (48 loc) · 1.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release
permissions:
contents: write
on:
push:
tags:
- "v*.*.**"
env:
CARGO_TERM_COLOR: always
jobs:
changelog-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: taiki-e/install-action@v2
with:
tool: git-cliff
- run: git cliff -o CHANGELOG_${{ github.ref_name }}.md $(git tag -l | sort -V | tail -n -2 | head -n -1)..HEAD
- uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG_${{ github.ref_name }}.md
token: ${{ secrets.GITHUB_TOKEN }}
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-gnu
- run: |
mkdir -p target/man
cargo run --features gen-man-pages -- target/man
gzip -9 target/man/*.1
- uses: taiki-e/install-action@v2
with:
tool: cargo-deb
- run: cargo deb --target x86_64-unknown-linux-gnu
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- uses: softprops/action-gh-release@v1
with:
files: target/x86_64-unknown-linux-gnu/debian/shh_*.deb
token: ${{ secrets.GITHUB_TOKEN }}