Skip to content

Commit

Permalink
ci(release): add homebrew (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterLemons2k authored Jun 15, 2023
1 parent e283f7a commit c24cd12
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write
Expand Down Expand Up @@ -33,3 +33,27 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

homebrew:
needs: goreleaser
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
test-bot: false

- name: Configure Git user
uses: Homebrew/actions/git-user-config@master

- name: Tap formulae repo
run: brew tap ivaquero/chinese

- name: Bump formulae
uses: Homebrew/actions/bump-formulae@master
with:
# Custom GitHub access token with only the 'workflow' scope enabled
token: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
formulae: ddns-go ivaquero/chinese/ddns-go

0 comments on commit c24cd12

Please sign in to comment.