From 819e6f7ab9e9fe1b0096486fd68198e5ed2b1066 Mon Sep 17 00:00:00 2001 From: harens Date: Tue, 6 Oct 2020 11:50:53 +0100 Subject: [PATCH 1/2] Add Homebrew Instructions --- docs/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/README.md b/docs/README.md index 5bd9e0af85..4b87077126 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,6 +5,7 @@ Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?st release](https://img.shields.io/pypi/v/commitizen.svg?style=flat-square)](https://pypi.org/project/commitizen/) [![Supported versions](https://img.shields.io/pypi/pyversions/commitizen.svg?style=flat-square)](https://pypi.org/project/commitizen/) +[![homebrew](https://img.shields.io/homebrew/v/commitizen?color=teal&style=flat-square)](https://formulae.brew.sh/formula/commitizen) [![Codecov](https://img.shields.io/codecov/c/github/commitizen-tools/commitizen.svg?style=flat-square)](https://codecov.io/gh/commitizen-tools/commitizen) ![Using commitizen cli](images/demo.gif) @@ -62,6 +63,14 @@ pip install -U commitizen poetry add commitizen --dev ``` +### macOS + +On macOS, it can also be installed via [homebrew](https://formulae.brew.sh/formula/commitizen): + +```bash +brew install commitizen +``` + ## Usage ### Committing From 341f3c1b200c652e067dfcca9a0a1bbf69aec80b Mon Sep 17 00:00:00 2001 From: harens Date: Tue, 6 Oct 2020 12:35:50 +0100 Subject: [PATCH 2/2] Homebrew Github Action Added --- .github/workflows/homebrewpublish.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/homebrewpublish.yaml diff --git a/.github/workflows/homebrewpublish.yaml b/.github/workflows/homebrewpublish.yaml new file mode 100644 index 0000000000..f0ef0e33cc --- /dev/null +++ b/.github/workflows/homebrewpublish.yaml @@ -0,0 +1,17 @@ +name: Publish to Homebrew + +on: + push: + tags: + - 'v*' +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Update Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + token: ${{secrets.PERSONAL_ACCESS_TOKEN}} + formula: commitizen