2024-11-01 07:09:21 +01:00
|
|
|
name: "⬆️ GitHub release -> Homebrew PR"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
new-update:
|
|
|
|
name: Deploy Homebrew
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2024-11-02 11:37:58 +01:00
|
|
|
- name: Set up Homebrew
|
|
|
|
uses: Homebrew/actions/setup-homebrew@master
|
2024-11-02 12:31:38 +01:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.DEPLOY_HOMEBREW_GITHUB_TOKEN }}
|
2024-11-02 12:02:24 +01:00
|
|
|
- name: Set up Git
|
|
|
|
run: |
|
|
|
|
git config --global user.email mail@artemchep.com
|
|
|
|
git config --global user.name AChep
|
|
|
|
- name: Update Homebrew cask
|
|
|
|
env:
|
|
|
|
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.DEPLOY_HOMEBREW_GITHUB_TOKEN }}
|
|
|
|
run: |
|
2024-11-02 12:31:38 +01:00
|
|
|
brew tap homebrew/cask --force
|
2024-11-02 12:02:24 +01:00
|
|
|
brew update
|
2024-11-02 12:31:38 +01:00
|
|
|
brew bump --open-pr --casks keyguard
|