-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from phalcon/pks/build_catalina_bottle
release catalina bottle
- Loading branch information
Showing
1 changed file
with
48 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Catalina Bottle | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'Formula/*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Install JQ Dep | ||
run: brew install jq | ||
- name: Add Phalcon Tap | ||
run: brew tap phalcon/extension . | ||
- name: Try to Install Phalcon | ||
run: brew install --build-bottle phalcon | ||
- name: Build Bottle | ||
run: brew bottle --json phalcon | ||
- name: Get Bottle Name | ||
id: bottle_name | ||
run: echo "::set-output name=filename::$(cat *.bottle.json | jq '.[].bottle.tags[].local_filename' | tr -d '"')" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: true | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ${{ steps.bottle_name.outputs.filename }} | ||
asset_name: ${{ steps.bottle_name.outputs.filename }} | ||
asset_content_type: application/zip |