Skip to content

Commit 24fd50e

Browse files
committed
ci: push to release repo on release
1 parent 38bdf9b commit 24fd50e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,12 @@ runs:
314314
build-scan-terms-of-use-agree: "yes"
315315
add-job-summary-as-pr-comment: on-failure
316316

317-
- name: Build with Gradle
317+
- name: Publish release
318318
shell: bash
319+
if: "github.event_name == 'release'"
320+
run: ./gradlew build publish -Pnative.extension=${{ matrix.ext }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache
321+
322+
- name: Publish snapshot
323+
shell: bash
324+
if: "github.event_name != 'release'"
319325
run: ./gradlew build publish -Pnative.extension=${{ matrix.ext }} --console=plain --info --configure-on-demand --parallel --build-cache

0 commit comments

Comments
 (0)