forked from SFDO-Tooling/CumulusCI
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1 KB
/
build_homebrew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Homebrew formula
on:
release:
types:
- created
jobs:
build:
name: Build Homebrew formula
runs-on: macos-10.15
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build formula
run: |
utility/build-homebrew.sh cumulusci.rb
- name: Test formula
run: |
brew audit cumulusci.rb
brew install cumulusci.rb
brew test cumulusci.rb
- name: Create branch in homebrew-sfdo repository
run: |
VERSION=$(python setup.py --version)
BRANCH="cci-$VERSION"
git clone https://HOMEBREW_GITHUB_USER:HOMEBREW_GITHUB_TOKEN@github.com/SFDO-Tooling/homebrew-sfdo.git
cd homebrew-sfdo
git checkout -b $BRANCH
cp ../cumulusci.rb ./
git add cumulusci.rb
git commit -m "Bump cumulusci to version $VERSION"
git push origin $BRANCH