Skip to content

Commit 1f67063

Browse files
Add manual pages on publish (#61)
2 parents 2ad75db + d93ec7a commit 1f67063

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
os: [ linux, darwin ]
1414
arch: [ amd64, arm64 ]
1515
steps:
16+
- name: Install Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.18.x
1620
- uses: actions/checkout@v3
1721
- name: Go Build
1822
run: CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -a -installsuffix cgo -o paranoia .
@@ -21,6 +25,17 @@ jobs:
2125
name: paranoia-${{ matrix.os }}-${{ matrix.arch }}
2226
path: paranoia
2327

28+
docs:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Documentation Build
33+
run: go run ./hack/generate-manual
34+
- uses: actions/upload-artifact@v3
35+
with:
36+
name: man-pages
37+
path: man/
38+
2439
release:
2540
needs:
2641
- build
@@ -37,9 +52,12 @@ jobs:
3752
mv paranoia-darwin-arm64/paranoia bin/paranoia-darwin-arm64
3853
mv paranoia-linux-amd64/paranoia bin/paranoia-linux-amd64
3954
mv paranoia-linux-arm64/paranoia bin/paranoia-linux-arm64
55+
mkdir man
56+
mv man-pages/* man/
4057
- name: Release
4158
uses: softprops/action-gh-release@v1
4259
with:
4360
files: |
4461
LICENSE.txt
4562
bin/paranoia-*
63+
man/*

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ jobs:
7272

7373
- name: Export Command Test
7474
run: it/export.sh
75+
docs:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/checkout@v3
79+
- name: Documentation Build
80+
run: go run ./hack/generate-manual
81+
- uses: actions/upload-artifact@v3
82+
with:
83+
name: man-pages
84+
path: man/
7585
# This action tests two things: That the GitHub Action works (as defined in the action.yml file) and by running
7686
# Paranoia on itself that we are shipping only the correct certs internally.
7787
paranoia-action-self-check:

0 commit comments

Comments
 (0)