-
Notifications
You must be signed in to change notification settings - Fork 3
88 lines (85 loc) · 2.23 KB
/
release-crates-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Release crates (Homebrew)
on:
workflow_call:
inputs:
repo:
type: string
required: true
live-run:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: true
artifact-patterns:
type: string
required: true
formulae:
type: string
required: true
no-build:
type: boolean
required: false
default: false
workflow_dispatch:
inputs:
repo:
type: string
required: true
live-run:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: true
artifact-patterns:
type: string
required: true
formulae:
type: string
required: true
no-build:
type: boolean
required: false
default: false
jobs:
build:
if: ${{ !inputs.no-build }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-apple-darwin, aarch64-apple-darwin]
steps:
- uses: eclipse-zenoh/ci/build-crates-standalone@main
with:
repo: ${{ inputs.repo }}
version: ${{ inputs.version }}
branch: ${{ inputs.branch }}
target: ${{ matrix.target }}
artifact-patterns: ${{ inputs.artifact-patterns }}
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}
publish:
if: always()
needs: build
runs-on: macos-latest
steps:
- uses: eclipse-zenoh/ci/publish-crates-homebrew@main
with:
repo: ${{ inputs.repo }}
live-run: ${{ inputs.live-run }}
version: ${{ inputs.version }}
formulae: ${{ inputs.formulae }}
tap: eclipse-zenoh/homebrew-zenoh
ssh-host: [email protected]
ssh-host-path: /home/data/httpd/download.eclipse.org/zenoh/homebrew-tap
ssh-host-url: https://download.eclipse.org/zenoh/homebrew-tap
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }}
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}