-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(macos): add beta homebrew formula (#2990)
- Loading branch information
1 parent
b6b8e68
commit 0b8468c
Showing
3 changed files
with
36 additions
and
0 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 |
---|---|---|
|
@@ -590,6 +590,39 @@ jobs: | |
tag: ${{ needs.setup_release.outputs.release_tag }} | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
- name: Patch homebrew formula | ||
# create beta version of the formula | ||
# don't run this on macOS, as the sed command fails | ||
if: >- | ||
matrix.release | ||
run: | | ||
# variables | ||
formula_file="homebrew/sunshine-beta.rb" | ||
# rename the file | ||
mv homebrew/sunshine.rb $formula_file | ||
# update the formula | ||
sed -i 's/class Sunshine < Formula/class SunshineBeta < Formula/' $formula_file | ||
sed -i 's/# conflicts_with/conflicts_with/' $formula_file | ||
# print new file | ||
echo "New formula:" | ||
cat $formula_file | ||
- name: Upload Homebrew Beta Formula | ||
if: >- | ||
matrix.release && | ||
needs.setup_release.outputs.publish_release == 'true' | ||
uses: LizardByte/[email protected] | ||
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 | ||
|
||
build_mac_port: | ||
needs: [setup_release] | ||
strategy: | ||
|
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