-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.17 KB
/
binary-release.yml
File metadata and controls
51 lines (42 loc) · 1.17 KB
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
name: Binary Release
# Standalone fallback — binaries are normally built by the Release workflow.
# Use workflow_dispatch to manually rebuild binaries for an existing release.
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.2.3)'
required: true
permissions:
contents: write
jobs:
build-binaries:
name: Build & Upload Binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.tag }}
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- uses: actions/setup-node@v6
with:
node-version: 22.x
cache: 'npm'
- name: Install deps & build
run: |
npm ci
npm run build
- name: Compile binaries
run: bash scripts/build-binaries.sh
- name: Restore full dependencies
run: npm ci
- name: Upload release assets
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for f in bin/camunda-schema-bundler-*; do
echo "Uploading $f..."
gh release upload "${{ inputs.tag }}" "$f" --clobber
done