summaryrefslogtreecommitdiffstats
path: root/.github/workflows/release.yml
blob: 0626fcefaeaff229b68be9629b425b1630ed1fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: release
on:
  push:
    tags:
      - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
  workflow_dispatch:

jobs:
  build:
    name: Debian Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Cargo Install Run
        uses: dtolnay/rust-toolchain@stable
      - run: |
          # Since v2.0.0 the deb package version will have a "-1" suffix. You can disable this by adding --deb-revision="" flag or revision = "" in Cargo metadata. The default suffix is for compliance with Debian's packaging standard.
          cargo install cargo-deb
          cargo deb
      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          files: target/debian/*.deb # /hex/target/debian/hx_0.5.0-1_amd64.deb