From 26e139889d497dcf2136c4123a27c66b7cdbc756 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 18 Jan 2025 19:56:56 +0100 Subject: [PATCH] Add man page to build tar file --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75d892a8e..46ef05635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,14 @@ jobs: uses: gradle/gradle-build-action@v2 with: dependency-graph: generate-and-submit + - name: Install asciidoc + run: sudo apt --no-install-recommends install -y asciidoc-base - name: Build with Gradle run: ./gradlew --no-daemon build + - name: Build man page + run: (cd man && make install) + - name: Add man page to archive + run: version=$(tar tf build/distributions/signal-cli-*.tar | head -n1 | sed 's|signal-cli-\([^/]*\)/.*|\1|'); tar --transform="flags=r;s|man|signal-cli-${version}/man|" -rf build/distributions/signal-cli-*.tar man/man{1,5} - name: Compress archive run: gzip -n -9 build/distributions/signal-cli-*.tar - name: Archive production artifacts