ci(homebrew): release to tap with GitHub release (#4091)
This commit is contained in:
parent
77edcd047f
commit
6ab24491ed
2 changed files with 33 additions and 12 deletions
19
.github/workflows/ci-homebrew.yml
vendored
19
.github/workflows/ci-homebrew.yml
vendored
|
|
@ -159,6 +159,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
id: python
|
id: python
|
||||||
|
if: false
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
@ -220,16 +221,10 @@ jobs:
|
||||||
echo "New formula:"
|
echo "New formula:"
|
||||||
cat $formula_file
|
cat $formula_file
|
||||||
|
|
||||||
- name: Upload Homebrew Beta Formula
|
- name: Upload Artifacts (Beta)
|
||||||
if: >-
|
if: matrix.release
|
||||||
github.repository_owner == 'LizardByte' &&
|
uses: actions/upload-artifact@v4
|
||||||
matrix.release &&
|
|
||||||
inputs.publish_release == 'true'
|
|
||||||
uses: LizardByte/actions/actions/release_homebrew@v2025.715.25226
|
|
||||||
with:
|
with:
|
||||||
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
|
name: beta-Homebrew
|
||||||
git_email: ${{ secrets.GIT_EMAIL }}
|
path: homebrew/
|
||||||
git_username: ${{ secrets.GIT_USERNAME }}
|
if-no-files-found: error
|
||||||
publish: true
|
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
|
||||||
validate: false
|
|
||||||
|
|
|
||||||
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
|
@ -212,3 +212,29 @@ jobs:
|
||||||
tag: ${{ needs.release-setup.outputs.release_tag }}
|
tag: ${{ needs.release-setup.outputs.release_tag }}
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
virustotal_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue