From 0a2dfa38e2158b8a0f3d8b801cf850085c53008e Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Fri, 15 Sep 2023 22:30:23 +0200 Subject: [PATCH] Automate Homebrew packaging --- .github/workflows/deployment.yml | 16 ++++++++++++++++ release.sh | 6 ------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..d75b900 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,16 @@ +name: Continuous Delivery + +on: + push: + tags: + - "*" + +jobs: + homebrew: + runs-on: ubuntu-latest + steps: + - name: Bump Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + token: ${{secrets.JOHAN_GITHUB_API_TOKEN}} + formula: moar diff --git a/release.sh b/release.sh index 46c4279..c9a143e 100755 --- a/release.sh +++ b/release.sh @@ -60,9 +60,3 @@ git push --tags echo echo "Please upload the following binaries to :" file releases/moar-"${VERSION}"-*-* - -echo -echo "Also, update the brew packaging by making a PR to this file:" -echo "https://github.com/Homebrew/homebrew-core/blob/master/Formula/moar.rb" -echo -echo "brew bump-formula-pr --url=https://github.com/walles/moar/archive/refs/tags/${VERSION}.tar.gz moar"