Skip to content

Commit 1a2ab40

Browse files
authored
ci: add homebrew action and docs (#735)
* ci: add homebrew step * docs: add brew install * fix: address feedback
1 parent 1b12fe1 commit 1a2ab40

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
@@ -58,3 +58,16 @@ jobs:
5858
if: ${{ steps.release.outputs.release_created }}
5959
env:
6060
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
62+
homebrew:
63+
name: "Bump Homebrew formula"
64+
runs-on: ubuntu-latest
65+
needs: release
66+
steps:
67+
- uses: mislav/bump-homebrew-formula-action@b3327118b2153c82da63fd9cbf58942146ee99f0 # v3
68+
with:
69+
# A PR will be sent to github.com/Homebrew/homebrew-core to update this formula
70+
formula-name: action-docs
71+
formula-path: Formula/a/action-docs.rb
72+
env:
73+
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)