Skip to content

Commit

Permalink
Rework action trigger for homebrew publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatto committed Feb 23, 2021
1 parent a38f424 commit 757a8b5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: build_and_test
on: [push]

jobs:
runner:
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish
on:
release:
types: [ published ]

jobs:
formula:
runs-on: macos-latest
steps:
- name: Update Homebrew Formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.HOMEBREW_TOKEN }}
formula: td
livecheck: true
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: Release
on:
push:
tags:
Expand All @@ -18,11 +18,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
homebrew-updater:
runs-on: macos-latest
steps:
- uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{secrets.GH_ACCESS_TOKEN}}
formula: td
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 757a8b5

Please sign in to comment.