From 01a75d4e2bfdf88fca1aa66e0da0d032d6040389 Mon Sep 17 00:00:00 2001 From: James Laverack Date: Tue, 25 Oct 2022 11:37:16 +0100 Subject: [PATCH 1/3] Add man pages on publish --- .github/workflows/release.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dcc569a..584794b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,6 +21,17 @@ jobs: name: paranoia-${{ matrix.os }}-${{ matrix.arch }} path: paranoia + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Documentation Build + run: go run ./hack/generate-manual + - uses: actions/upload-artifact@v3 + with: + name: man-pages + path: man/ + release: needs: - build @@ -37,9 +48,12 @@ jobs: mv paranoia-darwin-arm64/paranoia bin/paranoia-darwin-arm64 mv paranoia-linux-amd64/paranoia bin/paranoia-linux-amd64 mv paranoia-linux-arm64/paranoia bin/paranoia-linux-arm64 + mkdir man + mv man-pages/* man/ - name: Release uses: softprops/action-gh-release@v1 with: files: | LICENSE.txt bin/paranoia-* + man/* From 71acd4f088c89cb57044928ae50cf360ad74aa8d Mon Sep 17 00:00:00 2001 From: James Laverack Date: Tue, 25 Oct 2022 11:39:30 +0100 Subject: [PATCH 2/3] Pin Go version on release build --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 584794b..0d2d659 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,6 +13,10 @@ jobs: os: [ linux, darwin ] arch: [ amd64, arm64 ] steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: 1.18.x - uses: actions/checkout@v3 - name: Go Build run: CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -a -installsuffix cgo -o paranoia . From d93ec7abd49e4ff6813df78798e407086d4abf40 Mon Sep 17 00:00:00 2001 From: James Laverack Date: Tue, 25 Oct 2022 11:39:44 +0100 Subject: [PATCH 3/3] Geneate man pages in test builds --- .github/workflows/test.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2a969f8..5a4b107 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -72,6 +72,16 @@ jobs: - name: Export Command Test run: it/export.sh + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Documentation Build + run: go run ./hack/generate-manual + - uses: actions/upload-artifact@v3 + with: + name: man-pages + path: man/ # This action tests two things: That the GitHub Action works (as defined in the action.yml file) and by running # Paranoia on itself that we are shipping only the correct certs internally. paranoia-action-self-check: