Skip to content

Commit 01732bd

Browse files
authored
Migrate snapshot publishing to shared workflow and bump conventions (#6390)
* Migrate publish snapshot workflow to conventions * Bump conventions
1 parent 8f05bcc commit 01732bd

9 files changed

Lines changed: 26 additions & 51 deletions

.github/workflows/pr-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ concurrency:
88

99
jobs:
1010
base-android-ci:
11-
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@v0.9.0
11+
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@v0.11.0
1212
secrets: inherit
1313

1414
detekt:
1515
name: Detekt
1616
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@v4.2.2
19-
- uses: GetStream/stream-build-conventions-android/.github/actions/setup-gradle@v0.9.0
19+
- uses: GetStream/stream-build-conventions-android/.github/actions/setup-gradle@v0.11.0
2020
- name: Detekt
2121
run: ./gradlew detekt
2222

.github/workflows/pr-cleanup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ permissions:
1212

1313
jobs:
1414
pr-clean-stale:
15-
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v0.9.0
15+
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v0.11.0
1616
secrets: inherit

.github/workflows/pr-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ concurrency:
1515

1616
jobs:
1717
pr-checklist:
18-
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v0.9.0
18+
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v0.11.0
1919
secrets: inherit

.github/workflows/publish-new-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
permissions:
3737
contents: write
3838
needs: pre_release_check
39-
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v0.10.0
39+
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v0.11.0
4040
with:
4141
bump: ${{ inputs.bump }}
4242
suffix: ${{ inputs.suffix }}

.github/workflows/publish-snapshot.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
- develop
77
workflow_dispatch:
88

9+
concurrency:
10+
group: snapshot-release
11+
cancel-in-progress: false
12+
913
jobs:
10-
publish:
11-
name: Snapshot build and publish
12-
runs-on: ubuntu-24.04
13-
steps:
14-
- name: Check out code
15-
uses: actions/checkout@v3.1.0
16-
- uses: GetStream/android-ci-actions/actions/setup-java@main
17-
- name: Publish to MavenCentral
18-
run: ./gradlew publishToMavenCentral
19-
env:
20-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
21-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
22-
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
23-
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
24-
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
25-
ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: true
26-
SNAPSHOT: true
27-
- name: Show snapshot version
28-
run: ./scripts/show-last-snapshot-update.sh
29-
env:
30-
SNAPSHOT: true
14+
release:
15+
permissions:
16+
contents: write
17+
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v0.11.0
18+
with:
19+
bump: patch
20+
snapshot: true
21+
secrets:
22+
github-token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
23+
maven-central-username: ${{ secrets.OSSRH_USERNAME }}
24+
maven-central-password: ${{ secrets.OSSRH_PASSWORD }}
25+
signing-key: ${{ secrets.SIGNING_KEY }}
26+
signing-key-id: ${{ secrets.SIGNING_KEY_ID }}
27+
signing-key-password: ${{ secrets.SIGNING_PASSWORD }}

.github/workflows/sdk-size-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
compare-sdk-sizes:
12-
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v0.9.0
12+
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v0.11.0
1313
with:
1414
modules: "stream-chat-android-client stream-chat-android-ui-components stream-chat-android-compose"
1515
metrics-project: "stream-chat-android-metrics"

.github/workflows/sdk-size-updates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
update-sdk-sizes:
16-
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@v0.9.0
16+
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@v0.11.0
1717
with:
1818
modules: "stream-chat-android-client stream-chat-android-ui-components stream-chat-android-compose"
1919
metrics-project: "stream-chat-android-metrics"

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ room = "2.7.2"
7575
shimmer = "0.5.0"
7676
shimmerCompose = "1.3.1"
7777
shot = "6.1.0"
78-
streamConventions = "0.8.0"
78+
streamConventions = "0.11.0"
7979
streamLog = "1.3.2"
8080
streamPush = "1.3.1"
8181
streamResult = "1.3.2"

scripts/show-last-snapshot-update.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)