-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (52 loc) · 1.36 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Homebrew Tap
on:
workflow_dispatch:
inputs:
push:
description: Push the formula to the tap repository?
required: false
default: true
type: boolean
tag:
description: The git tag for the formula
required: true
type: string
workflow_call:
inputs:
push:
description: Push the formula to the tap repository?
required: false
default: true
type: boolean
tag:
description: The git tag to build on
required: true
type: string
secrets:
GH_APP_KEY:
description: GitHub App private key
required: true
jobs:
update_tap:
name: Homebrew
runs-on: ubuntu-latest
steps:
- name: Setup
id: setup
uses: duplocloud/duploctl/.github/actions/setup@main
with:
ref: ${{ inputs.tag }}
install: "--editable ."
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
repositories: homebrew-tap
- name: Freeze Requirements
run: pip freeze --exclude-editable > requirements.txt
- name: Build Dependencies
run: pip install .[build]
- name: Gen Formula
run: >-
./scripts/formula.py
--tag ${{ inputs.tag }}
--push ${{ inputs.push }}
--token ${{ steps.setup.outputs.token }}