File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
tests :
8
8
description : ' Run tests'
9
9
default : ' false'
10
+ publish :
11
+ description : ' Publish artifacts'
12
+ default : ' true'
10
13
runs :
11
14
using : composite
12
15
steps :
30
33
- name : Publish release
31
34
shell : bash
32
35
if : " github.event_name == 'release'"
33
- run : ./gradlew clean publish ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
36
+ run : ./gradlew clean ${{ inputs. publish == 'true' && 'publish' || '' }} ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
34
37
35
38
- name : Set outputs
36
39
id : vars
39
42
- name : Publish snapshot
40
43
shell : bash
41
44
if : " github.event_name != 'release'"
42
- run : ./gradlew clean publish ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
45
+ run : ./gradlew clean ${{ inputs. publish == 'true' && 'publish' || '' }} ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
Original file line number Diff line number Diff line change 7
7
tests :
8
8
description : ' Run tests'
9
9
default : ' false'
10
+ publish :
11
+ description : ' Publish the release'
12
+ default : ' true'
10
13
runs :
11
14
using : composite
12
15
steps :
@@ -229,7 +232,7 @@ runs:
229
232
- name : Publish release
230
233
shell : bash
231
234
if : " github.event_name == 'release'"
232
- run : ./gradlew clean publish ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pdeploy.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
235
+ run : ./gradlew clean ${{ inputs. publish == 'true' && 'publish' || '' }} ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pdeploy.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
233
236
234
237
- name : Set outputs
235
238
id : vars
@@ -238,4 +241,4 @@ runs:
238
241
- name : Publish snapshot
239
242
shell : bash
240
243
if : " github.event_name != 'release'"
241
- run : ./gradlew clean publish ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pdeploy.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
244
+ run : ./gradlew clean ${{ inputs. publish == 'true' && 'publish' || '' }} ${{ inputs.tests == 'true' && 'check' || '-x check -x test' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pdeploy.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
You can’t perform that action at this time.
0 commit comments