diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f8cb880..19311fc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -65,3 +65,17 @@ jobs: asset_path: dirstat-rs-${{ steps.get_version.outputs.version }}-universal-apple-darwin.tar.gz asset_name: dirstat-rs-${{ steps.get_version.outputs.version }}-universal-apple-darwin.tar.gz asset_content_type: application/gzip + + - uses: mislav/bump-homebrew-formula-action@v1 + if: "!contains(github.ref, '-')" + with: + formula-name: dirstat-rs + formula-path: Formula/dirstat-rs.rb + homebrew-tap: scullionw/homebrew-tap + base-branch: main + download-url: https://github.com/scullionw/dirstat-rs/releases/download/${{ steps.get_version.outputs.version }}/dirstat-rs-${{ steps.get_version.outputs.version }}-universal-apple-darwin.tar.gz + download-sha256: ${{ steps.shasum.outputs.sha }} + commit-message: | + {{formulaName}} {{version}} + env: + COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index b1da15d..b881f2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "dirstat-rs" -version = "0.3.5" +version = "0.3.6" dependencies = [ "atty", "pretty-bytes", diff --git a/Cargo.toml b/Cargo.toml index 16bc3aa..bd6ac9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dirstat-rs" -version = "0.3.5" +version = "0.3.6" authors = ["scullionw "] edition = "2018" license = "MIT"