-
-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
659e0d7
commit 6e733aa
Showing
3 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -691,21 +691,11 @@ jobs: | |
cd .. | ||
# copy formula to artifacts | ||
mkdir -p homebrew/Formula | ||
cp -f ./build/sunshine.rb ./homebrew/Formula/sunshine.rb | ||
mkdir -p homebrew | ||
cp -f ./build/sunshine.rb ./homebrew/sunshine.rb | ||
# testing | ||
cat ./homebrew/Formula/sunshine.rb | ||
- name: Install formula | ||
env: | ||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | ||
run: | | ||
brew install --verbose ./build/sunshine.rb | ||
- name: Test formula | ||
run: | | ||
brew test sunshine | ||
cat ./homebrew/sunshine.rb | ||
- name: Upload Artifacts | ||
if: ${{ matrix.release }} | ||
|
@@ -714,16 +704,28 @@ jobs: | |
name: sunshine-homebrew | ||
path: homebrew/ | ||
|
||
- name: Publish Homebrew Formula | ||
if: | | ||
(github.repository_owner == 'LizardByte' && | ||
needs.setup_release.outputs.create_release == 'true' && | ||
github.ref == 'refs/heads/master' && | ||
matrix.release) | ||
uses: LizardByte/[email protected] | ||
- name: Should Publish Homebrew Formula | ||
id: homebrew_publish | ||
run: | | ||
PUBLISH=false | ||
if [[ \ | ||
"${{ matrix.release }}" == "true" && \ | ||
"${{ github.repository_owner }}" == "LizardByte" && \ | ||
"${{ needs.setup_release.outputs.create_release }}" == "true" && \ | ||
"${{ github.ref }}" == "refs/heads/master" \ | ||
]]; then | ||
PUBLISH=true | ||
fi | ||
echo "publish=${PUBLISH}" >> $GITHUB_OUTPUT | ||
- name: Validate and Publish Homebrew Formula | ||
uses: LizardByte/homebrew-release-action@fix-checkout-paths-must-be-under-github-workspace | ||
with: | ||
formula_file: ${{ github.workspace }}/homebrew/sunshine.rb | ||
git_email: ${{ secrets.GH_BOT_EMAIL }} | ||
git_username: ${{ secrets.GH_BOT_NAME }} | ||
publish: ${{ steps.homebrew_publish.outputs.publish }} | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
build_mac_port: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters