From deceec38b33f8b6b327bf10f00105a0531ce70db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 1 Oct 2023 12:15:33 -0700 Subject: [PATCH] feat(release): automatically bump official brew formula on release --- .github/workflows/homebrew.yml | 16 ++++++++++++++++ README.md | 16 +++++----------- oranda.json | 3 ++- src/lib.rs | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/homebrew.yml diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml new file mode 100644 index 00000000..24fdb3bd --- /dev/null +++ b/.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 }} diff --git a/README.md b/README.md index fda51a45..bcb993cf 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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 diff --git a/oranda.json b/oranda.json index fea86675..56ff21b3 100644 --- a/oranda.json +++ b/oranda.json @@ -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" } } } diff --git a/src/lib.rs b/src/lib.rs index cb36b9fd..23ca328d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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