|
3 | 3 | pull_request:
|
4 | 4 | workflow_dispatch:
|
5 | 5 | inputs:
|
| 6 | + publish: |
| 7 | + description: 'Publish' |
| 8 | + type: boolean |
| 9 | + required: true |
| 10 | + default: false |
6 | 11 | publish_dry_run:
|
7 | 12 | description: 'Publish Dry Run'
|
8 | 13 | type: boolean
|
|
13 | 18 | type: boolean
|
14 | 19 | required: true
|
15 | 20 | default: false
|
16 |
| - publish_linux_x64: |
17 |
| - description: 'Publish Bindings for Linux x64' |
18 |
| - type: boolean |
19 |
| - required: true |
20 |
| - default: false |
21 |
| - publish_bindings: |
22 |
| - description: 'Publish Bindings (from Linux x64)' |
23 |
| - type: boolean |
24 |
| - required: true |
25 |
| - default: false |
26 |
| - publish_api: |
27 |
| - description: 'Publish API (from Linux x64)' |
28 |
| - type: boolean |
29 |
| - required: true |
30 |
| - default: false |
| 21 | + # publish_linux_x64: |
| 22 | + # description: 'Publish Bindings for Linux x64' |
| 23 | + # type: boolean |
| 24 | + # required: true |
| 25 | + # default: false |
| 26 | + # publish_bindings: |
| 27 | + # description: 'Publish Bindings (from Linux x64)' |
| 28 | + # type: boolean |
| 29 | + # required: true |
| 30 | + # default: false |
| 31 | + # publish_api: |
| 32 | + # description: 'Publish API (from Linux x64)' |
| 33 | + # type: boolean |
| 34 | + # required: true |
| 35 | + # default: false |
31 | 36 | linux_arm64:
|
32 | 37 | description: 'Run on Linux arm64'
|
33 | 38 | type: boolean
|
34 | 39 | required: true
|
35 | 40 | default: false
|
36 |
| - publish_linux_arm64: |
37 |
| - description: 'Publish Bindings for Linux arm64' |
38 |
| - type: boolean |
39 |
| - required: true |
40 |
| - default: false |
| 41 | + # publish_linux_arm64: |
| 42 | + # description: 'Publish Bindings for Linux arm64' |
| 43 | + # type: boolean |
| 44 | + # required: true |
| 45 | + # default: false |
41 | 46 | macos_arm64:
|
42 | 47 | description: 'Run on Mac OS X arm64'
|
43 | 48 | type: boolean
|
44 | 49 | required: true
|
45 | 50 | default: false
|
46 |
| - publish_darwin_arm64: |
47 |
| - description: 'Publish Bindings for Darwin arm64' |
48 |
| - type: boolean |
49 |
| - required: true |
50 |
| - default: false |
| 51 | + # publish_darwin_arm64: |
| 52 | + # description: 'Publish Bindings for Darwin arm64' |
| 53 | + # type: boolean |
| 54 | + # required: true |
| 55 | + # default: false |
51 | 56 | windows_x64:
|
52 | 57 | description: 'Run on Windows x64'
|
53 | 58 | type: boolean
|
54 | 59 | required: true
|
55 | 60 | default: false
|
56 |
| - publish_win32_x64: |
57 |
| - description: 'Publish Bindings for Win32 x64' |
58 |
| - type: boolean |
59 |
| - required: true |
60 |
| - default: false |
| 61 | + # publish_win32_x64: |
| 62 | + # description: 'Publish Bindings for Win32 x64' |
| 63 | + # type: boolean |
| 64 | + # required: true |
| 65 | + # default: false |
61 | 66 | repository_dispatch:
|
62 | 67 |
|
63 | 68 | concurrency:
|
@@ -97,25 +102,25 @@ jobs:
|
97 | 102 | run: pnpm test
|
98 | 103 |
|
99 | 104 | - name: Git Status
|
100 |
| - if: ${{ inputs.publish_linux_x64 || inputs.publish_bindings || inputs.publish_api }} |
| 105 | + if: ${{ inputs.publish }} |
101 | 106 | run: git status
|
102 | 107 |
|
103 | 108 | - name: Publish - Bindings - Linux x64
|
104 |
| - if: ${{ inputs.publish_linux_x64 }} |
| 109 | + if: ${{ inputs.publish }} |
105 | 110 | working-directory: bindings/pkgs/@duckdb/node-bindings-linux-x64
|
106 | 111 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
107 | 112 | env:
|
108 | 113 | NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }}
|
109 | 114 |
|
110 | 115 | - name: Publish - Bindings
|
111 |
| - if: ${{ inputs.publish_bindings }} |
| 116 | + if: ${{ inputs.publish }} |
112 | 117 | working-directory: bindings/pkgs/@duckdb/node-bindings
|
113 | 118 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
114 | 119 | env:
|
115 | 120 | NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }}
|
116 | 121 |
|
117 | 122 | - name: Publish - API
|
118 |
| - if: ${{ inputs.publish_api }} |
| 123 | + if: ${{ inputs.publish }} |
119 | 124 | working-directory: api/pkgs/@duckdb/node-api
|
120 | 125 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
121 | 126 | env:
|
@@ -147,11 +152,11 @@ jobs:
|
147 | 152 | run: pnpm run build
|
148 | 153 |
|
149 | 154 | - name: Git Status
|
150 |
| - if: ${{ inputs.publish_linux_arm64 }} |
| 155 | + if: ${{ inputs.publish }} |
151 | 156 | run: git status
|
152 | 157 |
|
153 | 158 | - name: Publish - Bindings - Linux arm64
|
154 |
| - if: ${{ inputs.publish_linux_arm64 }} |
| 159 | + if: ${{ inputs.publish }} |
155 | 160 | working-directory: bindings/pkgs/@duckdb/node-bindings-linux-arm64
|
156 | 161 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
157 | 162 | env:
|
@@ -188,11 +193,11 @@ jobs:
|
188 | 193 | run: pnpm test
|
189 | 194 |
|
190 | 195 | - name: Git Status
|
191 |
| - if: ${{ inputs.publish_darwin_arm64 }} |
| 196 | + if: ${{ inputs.publish }} |
192 | 197 | run: git status
|
193 | 198 |
|
194 | 199 | - name: Publish - Bindings - Darwin arm64
|
195 |
| - if: ${{ inputs.publish_darwin_arm64 }} |
| 200 | + if: ${{ inputs.publish }} |
196 | 201 | working-directory: bindings/pkgs/@duckdb/node-bindings-darwin-arm64
|
197 | 202 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
198 | 203 | env:
|
@@ -229,11 +234,11 @@ jobs:
|
229 | 234 | run: pnpm test
|
230 | 235 |
|
231 | 236 | - name: Git Status
|
232 |
| - if: ${{ inputs.publish_win32_x64 }} |
| 237 | + if: ${{ inputs.publish }} |
233 | 238 | run: git status
|
234 | 239 |
|
235 | 240 | - name: Publish - Bindings - Win32 x64
|
236 |
| - if: ${{ inputs.publish_win32_x64 }} |
| 241 | + if: ${{ inputs.publish }} |
237 | 242 | working-directory: bindings/pkgs/@duckdb/node-bindings-win32-x64
|
238 | 243 | run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
|
239 | 244 | env:
|
|
0 commit comments