Skip to content

Commit

Permalink
Add manual pages on publish (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLaverack authored Oct 25, 2022
2 parents 2ad75db + d93ec7a commit 1f67063
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -21,6 +25,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
Expand All @@ -37,9 +52,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/*
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1f67063

Please sign in to comment.