This repository was archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
61 lines (59 loc) · 1.75 KB
/
push-binary-dispatch.yml
File metadata and controls
61 lines (59 loc) · 1.75 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
52
53
54
55
56
57
58
59
60
61
# This workflow file is used to manually trigger pushing binaries for target env's
# post release, to deal with the case when this fails during an automated release
name: push-binary-dispatch
on:
workflow_dispatch:
inputs:
macos:
description: "MacOS Binaries"
required: true
type: boolean
linux:
description: "Linux Binaries"
required: true
type: boolean
jobs:
build_macos_pub_binaries:
name: Publish MacOS binaries for supported environments for release
if: ${{ github.event.inputs.macos == 'true' }}
timeout-minutes: 30
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [16.x, 18.x]
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn publish:binary
shell: bash
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_linux_pub_binaries:
name: Publish Linux binaries for supported environments for release
if: ${{ github.event.inputs.linux == 'true' }}
timeout-minutes: 30
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn publish:binary
shell: bash
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}