Skip to content

Commit ccc0e80

Browse files
nitrocodenpalm
authored andcommitted
ci: add homebrew action and docs (#735)
* ci: add homebrew step * docs: add brew install * fix: address feedback
1 parent 5c129f9 commit ccc0e80

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,16 @@ jobs:
5555
if: ${{ steps.release.outputs.release_created }}
5656
env:
5757
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
59+
homebrew:
60+
name: "Bump Homebrew formula"
61+
runs-on: ubuntu-latest
62+
needs: release
63+
steps:
64+
- uses: mislav/bump-homebrew-formula-action@b3327118b2153c82da63fd9cbf58942146ee99f0 # v3
65+
with:
66+
# A PR will be sent to github.com/Homebrew/homebrew-core to update this formula
67+
formula-name: action-docs
68+
formula-path: Formula/a/action-docs.rb
69+
env:
70+
COMMITTER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,23 @@ Optionally you can also add the following section to generate a usage guide, rep
3030
<!-- action-docs-usage source="action.yml" project="<project>" version="<version>" -->
3131
```
3232

33-
### Generate docs via CLI
33+
### Install
34+
35+
#### npm
3436

3537
```bash
3638
npm install -g action-docs
39+
```
40+
41+
#### brew
42+
43+
```bash
44+
brew install action-docs
45+
```
46+
47+
### Generate docs via CLI
48+
49+
```bash
3750
cd <your github action>
3851

3952
# write docs to console

0 commit comments

Comments
 (0)