Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
permissions:
contents: read
pull-requests: read
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@9ea4d20d64f99a1a05dd8c8f56504e5e2aa39ed7
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@161dace284ff29473ea607bf26f436f6bb46c057
secrets:
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }}
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-clean-stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ permissions:

jobs:
pr-clean-stale:
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v0.14.1
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v1.0.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/pr-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ concurrency:

jobs:
pr-checklist:
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v0.14.1
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v1.0.0
secrets: inherit
64 changes: 63 additions & 1 deletion .github/workflows/publish-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ on:
- minor
- major
default: minor
suffix:
description: 'Optional version suffix (e.g. beta, rc01). A dash is added automatically.'
required: false
type: string
default: ''
publish-targets:
description: >-
Leave as-is. central is a manual escape hatch for a release that has to
go out when the Stream repository cannot take it.
required: false
type: choice
options:
- streamRepo
- streamRepo,central
- central
default: streamRepo

concurrency:
group: release
Expand All @@ -32,9 +48,11 @@ jobs:
permissions:
contents: write
needs: pre_release_check
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@9ea4d20d64f99a1a05dd8c8f56504e5e2aa39ed7
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@161dace284ff29473ea607bf26f436f6bb46c057
with:
bump: ${{ inputs.bump }}
suffix: ${{ inputs.suffix }}
publish-targets: ${{ inputs.publish-targets }}
secrets:
github-token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
maven-central-username: ${{ secrets.OSSRH_USERNAME }}
Expand All @@ -43,3 +61,47 @@ jobs:
signing-key-id: ${{ secrets.SIGNING_KEY_ID }}
signing-key-password: ${{ secrets.SIGNING_PASSWORD }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_ANDROID_CICD }}
stream-repo-endpoint: ${{ secrets.STREAM_REPO_ENDPOINT }}
stream-repo-bucket: ${{ secrets.STREAM_REPO_BUCKET }}
stream-repo-access-key-id: ${{ secrets.STREAM_REPO_ACCESS_KEY_ID }}
stream-repo-secret-access-key: ${{ secrets.STREAM_REPO_SECRET_ACCESS_KEY }}

# Customers need one line of setup to see a version that is not on Central,
# so say so at the top of the release, above the generated "What's Changed".
# A separate job because the release is created inside the reusable workflow.
release-notes-header:
needs: publish
if: ${{ inputs.publish-targets == 'streamRepo' }}
name: Add the Stream repository card to the release
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Prepend the card
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
# The release concurrency group means the newest release is this run's.
TAG=$(gh release list -R "$GITHUB_REPOSITORY" --limit 1 --json tagName -q '.[0].tagName')

cat > card.md <<EOF
> [!IMPORTANT]
> **\`$TAG\` is published to the Stream Maven repository, not Maven Central.**
>
> \`\`\`kotlin
> // settings.gradle.kts
> dependencyResolutionManagement {
> repositories {
> google()
> mavenCentral()
> maven("https://stream-io-repo.com")
> }
> }
> \`\`\`

EOF

gh release view "$TAG" -R "$GITHUB_REPOSITORY" --json body -q .body > notes.md
cat card.md notes.md > body.md
gh release edit "$TAG" -R "$GITHUB_REPOSITORY" --notes-file body.md
7 changes: 6 additions & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
release:
permissions:
contents: write
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v0.14.1
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v1.0.0
with:
bump: patch
snapshot: true
publish-targets: streamRepo
secrets:
github-token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
maven-central-username: ${{ secrets.OSSRH_USERNAME }}
Expand All @@ -24,3 +25,7 @@ jobs:
signing-key-id: ${{ secrets.SIGNING_KEY_ID }}
signing-key-password: ${{ secrets.SIGNING_PASSWORD }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_ANDROID_CICD }}
stream-repo-endpoint: ${{ secrets.STREAM_REPO_ENDPOINT }}
stream-repo-bucket: ${{ secrets.STREAM_REPO_BUCKET }}
stream-repo-access-key-id: ${{ secrets.STREAM_REPO_ACCESS_KEY_ID }}
stream-repo-secret-access-key: ${{ secrets.STREAM_REPO_SECRET_ACCESS_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:

jobs:
compare-sdk-sizes:
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v0.14.1
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v1.0.0
with:
modules: "stream-feeds-android-client"
metrics-project: "stream-feeds-android-metrics"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
update-sdk-sizes:
permissions:
contents: read
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@9ea4d20d64f99a1a05dd8c8f56504e5e2aa39ed7
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@161dace284ff29473ea607bf26f436f6bb46c057
with:
modules: "stream-feeds-android-client"
metrics-project: "stream-feeds-android-metrics"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ streamAndroidCore = "5.1.1"
symbolProcessingApi = "2.2.0-2.0.2"
lifecycleProcess = "2.9.1"
lifecycleViewModelCompose = "2.4.0"
streamConventions = "0.14.1"
streamConventions = "1.0.0"
turbine = "1.2.1"

[libraries]
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pluginManagement {
mavenCentral()
gradlePluginPortal()
mavenLocal()
maven("https://stream-io-repo.com")
}
}

Expand Down
Loading