c251203a129c453c88b4efe0b19027d992c3ffe1
- Author
- Christian Muehlhaeuser <muesli@gmail.com>
- Committer
- Toby Padilla <tobypadilla@gmail.com>
- Date
Message
ci: add manpage workflow
Diff
1diff --git a/.github/workflows/manpage.yml b/.github/workflows/manpage.yml
2new file mode 100644
3index 0000000000000000000000000000000000000000..26b19caac5804b60686c3c170dc433b258a172e6
4--- /dev/null
5+++ b/.github/workflows/manpage.yml
6@@ -0,0 +1,41 @@
7+name: manpage
8+
9+on:
10+ push:
11+ branches:
12+ - manpage
13+
14+jobs:
15+ manpage:
16+ runs-on: ubuntu-latest
17+ steps:
18+ - name: Install Go
19+ uses: actions/setup-go@v2
20+ with:
21+ go-version: 1.17
22+
23+ - name: Checkout code
24+ uses: actions/checkout@v2
25+
26+ - name: Download Go modules
27+ run: go mod download
28+
29+ - name: Build
30+ run: |
31+ cd cmd/soft
32+ go build -v -tags mango
33+
34+ - name: Generate man-page
35+ run: |
36+ ./cmd/soft/soft > ./cmd/soft/soft.1
37+
38+ - name: Commit
39+ uses: stefanzweifel/git-auto-commit-action@v4
40+ env:
41+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+ with:
43+ commit_message: "docs: update man page"
44+ branch: manpage
45+ commit_user_name: mango 🤖
46+ commit_user_email: actions@github.com
47+ commit_author: mango 🤖 <actions@github.com>