From 6ab24491ed0463eb60c8b902e018d98be3afd06b Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 17 Jul 2025 19:32:48 -0400 Subject: [PATCH] ci(homebrew): release to tap with GitHub release (#4091) --- .github/workflows/ci-homebrew.yml | 19 +++++++------------ .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-homebrew.yml b/.github/workflows/ci-homebrew.yml index 2e2cbd92..9c2564d1 100644 --- a/.github/workflows/ci-homebrew.yml +++ b/.github/workflows/ci-homebrew.yml @@ -159,6 +159,7 @@ jobs: - name: Setup python id: python + if: false uses: actions/setup-python@v5 with: python-version: '3.11' @@ -220,16 +221,10 @@ jobs: echo "New formula:" cat $formula_file - - name: Upload Homebrew Beta Formula - if: >- - github.repository_owner == 'LizardByte' && - matrix.release && - inputs.publish_release == 'true' - uses: LizardByte/actions/actions/release_homebrew@v2025.715.25226 + - name: Upload Artifacts (Beta) + if: matrix.release + uses: actions/upload-artifact@v4 with: - formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb - git_email: ${{ secrets.GIT_EMAIL }} - git_username: ${{ secrets.GIT_USERNAME }} - publish: true - token: ${{ secrets.GH_TOKEN }} - validate: false + name: beta-Homebrew + path: homebrew/ + if-no-files-found: error diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad2dd394..322778f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -212,3 +212,29 @@ jobs: tag: ${{ needs.release-setup.outputs.release_tag }} token: ${{ secrets.GH_BOT_TOKEN }} virustotal_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }} + + release-homebrew-beta: + name: Release Homebrew Beta + if: + needs.release-setup.outputs.publish_release == 'true' && + startsWith(github.repository, 'LizardByte/') + needs: + - release-setup + - build-homebrew + - release + runs-on: ubuntu-latest + steps: + - name: Download homebrew artifacts + uses: actions/download-artifact@v4 + with: + name: beta-Homebrew + + - name: Upload Homebrew Beta Formula + uses: LizardByte/actions/actions/release_homebrew@v2025.715.25226 + with: + formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb + git_email: ${{ secrets.GH_BOT_EMAIL }} + git_username: ${{ secrets.GH_BOT_NAME }} + publish: true + token: ${{ secrets.GH_BOT_TOKEN }} + validate: false