Skip to content

Commit 7cfa1b4

Browse files
committed
ci: publish individual commit builds
1 parent 37616bb commit 7cfa1b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ffmpeg.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,15 @@ jobs:
161161
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
162162
build-scan-terms-of-use-agree: "yes"
163163
add-job-summary-as-pr-comment: on-failure
164-
165164
- name: Publish release
166165
shell: bash
167166
if: "github.event_name == 'release'"
168167
run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache
169168

169+
- name: Set outputs
170+
id: vars
171+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
170172
- name: Publish snapshot
171173
shell: bash
172174
if: "github.event_name != 'release'"
173-
run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} --console=plain --info --configure-on-demand --parallel --build-cache
175+
run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache

0 commit comments

Comments
 (0)