-
Notifications
You must be signed in to change notification settings - Fork 23
35 lines (34 loc) · 926 Bytes
/
release.yml
File metadata and controls
35 lines (34 loc) · 926 Bytes
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
on:
push:
tags:
- "v*"
name: Release
jobs:
build:
name: Release (github.com)
runs-on: ubuntu-latest
env:
BINARY_NAME: fw
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v6
- uses: docker://messense/rust-musl-cross:x86_64-musl
with:
args: cargo build --release
- uses: docker://messense/rust-musl-cross:x86_64-musl
with:
args: musl-strip target/x86_64-unknown-linux-musl/release/fw
- run: cp ./target/x86_64-unknown-linux-musl/release/fw fw
- run: sha512sum fw > fw.sha512sum
- run: cargo run >> fw.1
working-directory: ./man
- id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
files: |
fw
man/fw.1
fw.sha512sum
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}