forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.58 KB
/
release-pipeline.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
name: "Release Pipeline"
on:
release:
types:
- released
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true
env:
HOMEBREW_TAP_REPO_OWNER: "heartexlabs"
HOMEBREW_TAP_REPO: "homebrew-tap"
jobs:
promote_docker_image:
name: "Promote"
uses: heartexlabs/label-studio/.github/workflows/docker-release-promote.yml@develop
with:
release_tag: ${{ github.ref_name }}
secrets: inherit
build-pypi:
name: "Build"
uses: heartexlabs/label-studio/.github/workflows/build_pypi.yml@develop
with:
version: ${{ github.ref_name }}
ref: ${{ github.ref_name }}
upload_to_pypi: true
release-id: ${{ github.event.release.id }}
secrets: inherit
update-homebrew-tap:
name: "Update Homebrew Tap"
runs-on: ubuntu-latest
needs:
- build-pypi
steps:
- uses: hmarr/[email protected]
- name: DispatchEvent
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GIT_PAT }}
script: |
await github.rest.repos.createDispatchEvent({
owner: '${{ env.HOMEBREW_TAP_REPO_OWNER }}',
repo: '${{ env.HOMEBREW_TAP_REPO }}',
event_type: 'upstream_formula_update',
client_payload: {
formula: 'label-studio'
url: '${{ needs.build-pypi.outputs.pipy-artifact-url }}',
sha256: '${{ needs.build-pypi.outputs.pipy-artifact-digests-sha256 }}',
}
});