Skip to content

Commit

Permalink
add action to bump formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-dev committed Jul 24, 2020
1 parent 05f2c43 commit 5bbbbfe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/bump-formula.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Bump Homebrew nef formula

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
homebrew:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bump formulae
uses: dawidd6/[email protected]
with:
token: ${{ secrets.HOMEBREW_NEF_TOKEN }}
formula: nef
livecheck: true
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,3 @@ clean:
.PHONY: zip
zip: build
@zip $(TOOL_NAME).$(version).zip $(foreach binary,$(BINARIES),$(BINARIES_PATH)/$(binary))

.PHONY: get_sha
get_sha:
@curl -OLs https://github.com/bow-swift/$(TOOL_NAME)/archive/$(TAR_FILENAME)
@shasum -a 256 $(TAR_FILENAME) | cut -f 1 -d " " > sha_$(version).txt
@rm $(TAR_FILENAME)

.PHONY: brew_push
brew_push: get_sha
SHA=$(shell cat sha_$(version).txt); \
brew bump-formula-pr --url="https://github.com/bow-swift/$(TOOL_NAME)/archive/$(TAR_FILENAME)" --sha256=$$SHA

0 comments on commit 5bbbbfe

Please sign in to comment.