From 28e4cb93aa424f021be0e4426097b35e30f89eca Mon Sep 17 00:00:00 2001 From: sitkevij <1553398+sitkevij@users.noreply.github.com> Date: Thu, 28 Dec 2023 13:36:30 -0800 Subject: ci: ga automated generation of debian build artifacts with README update --- .github/workflows/release.yml | 20 ++++++++++++++++++++ README.md | 5 ++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9fa248c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: release +on: + push: + tags: + - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 + workflow_dispatch: + +jobs: + build: + runs-on: rust-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - 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 diff --git a/README.md b/README.md index 7b16b87..5eb0230 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,11 @@ pacman -S hex ### debian install +Browse https://github.com/sitkevij/hex/releases/latest to choose `VERSION` for use with this debian +installation example: + ```sh -curl -sLO https://github.com/sitkevij/hex/releases/download/v0.4.2/hx_0.4.2_amd64.deb && dpkg -i hx_0.4.2_amd64.deb +VERSION=0.6.0 && curl -sLO "https://github.com/sitkevij/hex/releases/download/v$VERSION/hx_$VERSION-1_amd64.deb" && dpkg -i "hx_$VERSION-1_amd64.deb" ``` ### guix install -- cgit v1.2.3