Skip to content

Commit

Permalink
feat(release): automatically bump official brew formula on release
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Oct 1, 2023
1 parent 9707eca commit deceec3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/homebrew.yml
@@ -0,0 +1,16 @@
name: Homebrew Update

on:
push:
tags: 'v*'

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: orogene
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
16 changes: 5 additions & 11 deletions README.md
Expand Up @@ -58,6 +58,11 @@ Cargo:
$ cargo install orogene
```

Homebrew:
```sh
$ brew install orogene
```

You can also find install scripts, windows MSI installers, and archive
downloads in [the latest
release](https://github.com/orogene/orogene/releases/latest).
Expand All @@ -70,17 +75,6 @@ docs](https://orogene.dev/book/), or run `$ oro help`.
If you just want to do something similar to `$ npm install`, you can run
`$ oro apply` in your project and go from there.

### Compiling with Docker

```sh
$ docker build -t orogene .
```
Test it with

```sh
docker run -it --rm --name oro orogene /usr/src/orogene/target/release/oro --version
```

### Performance

Orogene is very fast and uses significantly fewer resources than other
Expand Down
3 changes: 2 additions & 1 deletion oranda.json
Expand Up @@ -21,7 +21,8 @@
"preferred": {
"npm": "npm install -g orogene",
"npx": "npx oro -h",
"crates.io": "cargo install orogene"
"crates.io": "cargo install orogene",
"homebrew": "brew install orogene"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -45,7 +45,7 @@
//!
//! Homebrew:
//! ```sh
//! $ brew install orogene/homebrew-tap/orogene
//! $ brew install orogene
//! ```
//!
//! You can also find install scripts, windows MSI installers, and archive
Expand Down

0 comments on commit deceec3

Please sign in to comment.