Skip to content

Commit

Permalink
Merge pull request #10 from phalcon/pks/build_catalina_bottle
Browse files Browse the repository at this point in the history
release catalina bottle
  • Loading branch information
CameronHall authored Jan 9, 2020
2 parents 97016a2 + 9412ea9 commit 5819348
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/catalina.yml
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

0 comments on commit 5819348

Please sign in to comment.