forked from eclipse-zenoh/ci
-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (102 loc) · 2.45 KB
/
release-crates-ghcr.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Release crates (GHCR)
on:
workflow_call:
inputs:
live-run:
type: string
required: false
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: false
binary:
type: string
required: true
files:
type: string
required: true
platforms:
type: string
required: true
images:
type: string
required: true
labels:
type: string
required: false
no-build:
type: boolean
required: false
default: false
workflow_dispatch:
inputs:
live-run:
type: string
required: false
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: false
binary:
type: string
required: true
files:
type: string
required: true
platforms:
type: string
required: true
images:
type: string
required: true
labels:
type: string
required: false
no-build:
type: boolean
required: false
default: false
jobs:
build:
if: ${{ !inputs.no-build }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl]
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.files }}
github-token: ${{ secrets.ZETTASCALE_BOT_PERSONAL_ACCESS_TOKEN }}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: ZettaScaleLabs/ci/publish-crates-docker@main
with:
repo: ${{ inputs.repo }}
version: ${{ inputs.version }}
live-run: ${{ inputs.live-run }}
files: ${{ inputs.files }}
binary: ${{ inputs.binary }}
platforms: ${{ inputs.platforms }}
images: ${{ inputs.images }}
labels: ${{ inputs.labels }}
username: zettascale-bot
password: ${{ secrets.ZETTASCALE_BOT_PERSONAL_ACCESS_TOKEN }}
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}