Skip to content

Commit 95aa817

Browse files
authored
chore: migrate from semantic-release to release-please (#2339)
* chore: migrate from semantic-release to release-please * chore: add header * chore: removed package name * chore: add region tags for version * chore: migrate from semantic-release to release-please * chore: add header
1 parent 860baf5 commit 95aa817

File tree

7 files changed

+53
-82
lines changed

7 files changed

+53
-82
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
on:
16+
push:
17+
branches:
18+
- main
19+
20+
permissions:
21+
contents: write
22+
pull-requests: write
23+
24+
name: release-please
25+
26+
jobs:
27+
release-please:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: googleapis/release-please-action@v4
31+
id: release
32+
with:
33+
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
34+
config-file: release-please-config.json
35+
manifest-file: .release-please-manifest.json

.github/workflows/release.yml

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

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.19.0"
3+
}

.releaserc

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

ApiDemos/project/java-app/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ android {
2828
minSdk = libs.versions.minSdk.get().toInt()
2929
targetSdk = libs.versions.targetSdk.get().toInt()
3030
versionCode = 1
31+
// {x-release-please-start-version}
3132
versionName = "1.19.0"
33+
// {x-release-please-end}
3234
multiDexEnabled = true
3335
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3436
}

ApiDemos/project/kotlin-app/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ android {
3131
minSdk = libs.versions.minSdk.get().toInt()
3232
targetSdk = libs.versions.targetSdk.get().toInt()
3333
versionCode = 1
34+
// {x-release-please-start-version}
3435
versionName = "1.19.0"
36+
// {x-release-please-end}
3537
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3638
multiDexEnabled = true
3739
}

release-please-config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "simple",
5+
"extra-files": [
6+
"ApiDemos/project/java-app/build.gradle.kts",
7+
"ApiDemos/project/kotlin-app/build.gradle.kts"
8+
]
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)