Skip to content

Commit 17a8719

Browse files
committed
ci: add publish flag
1 parent 90b6b78 commit 17a8719

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/actions/deploy-kotlin/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
tests:
88
description: 'Run tests'
99
default: 'false'
10+
publish:
11+
description: 'Publish artifacts'
12+
default: 'true'
1013
runs:
1114
using: composite
1215
steps:
@@ -30,7 +33,7 @@ runs:
3033
- name: Publish release
3134
shell: bash
3235
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
3437

3538
- name: Set outputs
3639
id: vars
@@ -39,4 +42,4 @@ runs:
3942
- name: Publish snapshot
4043
shell: bash
4144
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

.github/actions/deploy-ubuntu/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
tests:
88
description: 'Run tests'
99
default: 'false'
10+
publish:
11+
description: 'Publish the release'
12+
default: 'true'
1013
runs:
1114
using: composite
1215
steps:
@@ -229,7 +232,7 @@ runs:
229232
- name: Publish release
230233
shell: bash
231234
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
233236

234237
- name: Set outputs
235238
id: vars
@@ -238,4 +241,4 @@ runs:
238241
- name: Publish snapshot
239242
shell: bash
240243
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

0 commit comments

Comments
 (0)