Skip to content

Commit 6ab2449

Browse files
ci(homebrew): release to tap with GitHub release (#4091)
1 parent 77edcd0 commit 6ab2449

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

.github/workflows/ci-homebrew.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ jobs:
159159

160160
- name: Setup python
161161
id: python
162+
if: false
162163
uses: actions/setup-python@v5
163164
with:
164165
python-version: '3.11'
@@ -220,16 +221,10 @@ jobs:
220221
echo "New formula:"
221222
cat $formula_file
222223
223-
- name: Upload Homebrew Beta Formula
224-
if: >-
225-
github.repository_owner == 'LizardByte' &&
226-
matrix.release &&
227-
inputs.publish_release == 'true'
228-
uses: LizardByte/actions/actions/release_homebrew@v2025.715.25226
224+
- name: Upload Artifacts (Beta)
225+
if: matrix.release
226+
uses: actions/upload-artifact@v4
229227
with:
230-
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
231-
git_email: ${{ secrets.GIT_EMAIL }}
232-
git_username: ${{ secrets.GIT_USERNAME }}
233-
publish: true
234-
token: ${{ secrets.GH_TOKEN }}
235-
validate: false
228+
name: beta-Homebrew
229+
path: homebrew/
230+
if-no-files-found: error

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,29 @@ jobs:
212212
tag: ${{ needs.release-setup.outputs.release_tag }}
213213
token: ${{ secrets.GH_BOT_TOKEN }}
214214
virustotal_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
215+
216+
release-homebrew-beta:
217+
name: Release Homebrew Beta
218+
if:
219+
needs.release-setup.outputs.publish_release == 'true' &&
220+
startsWith(github.repository, 'LizardByte/')
221+
needs:
222+
- release-setup
223+
- build-homebrew
224+
- release
225+
runs-on: ubuntu-latest
226+
steps:
227+
- name: Download homebrew artifacts
228+
uses: actions/download-artifact@v4
229+
with:
230+
name: beta-Homebrew
231+
232+
- name: Upload Homebrew Beta Formula
233+
uses: LizardByte/actions/actions/release_homebrew@v2025.715.25226
234+
with:
235+
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
236+
git_email: ${{ secrets.GH_BOT_EMAIL }}
237+
git_username: ${{ secrets.GH_BOT_NAME }}
238+
publish: true
239+
token: ${{ secrets.GH_BOT_TOKEN }}
240+
validate: false

0 commit comments

Comments
 (0)