Add release github action

This commit is contained in:
chenjiandongx 2021-12-24 23:49:57 +08:00
parent 1ae761e1ef
commit ea3d9dbd1f
1 changed files with 19 additions and 0 deletions

19
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Release
on:
release:
types: [created]
jobs:
homebrew:
runs-on: macos-latest
needs:
- release
steps:
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.BREW_TOKEN }}
formula: sniffer
tag: ${{ github.ref }}
revision: ${{ github.sha }}