Skip to content

Commit

Permalink
build: 更新版本至3.0.1并调整版本命名逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
xihan123 committed Jan 27, 2025
1 parent 4cfbca6 commit dddf0ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
with:
token: ${{ secrets.RELEASE_TOKEN }}
release-type: node
release-as: 3.0.0
release-as: 3.0.1
package-name: release-please-action
changelog-types: '[{"type":"types","section":"Types","hidden":false},{"type":"revert","section":"Reverts","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"improvement","section":"Feature Improvements","hidden":false},{"type":"docs","section":"Docs","hidden":false},{"type":"ci","section":"CI","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ keystoreProperties.load(FileInputStream(keystorePropertiesFile))

val repo = jgit.repo()
val commitCount = (repo?.commitCount("refs/remotes/origin/master") ?: 200) + 25
val latestTag = repo?.latestTag?.removePrefix("v") ?: "2.x.x-SNAPSHOT"
val latestTag = repo?.latestTag?.removePrefix("v") ?: "3.x.x-SNAPSHOT"

val verCode by extra(200)
val verName by extra("2.0.4")
val verCode by extra(commitCount)
val verName by extra(latestTag)
println("verCode: $verCode, verName: $verName")
val androidTargetSdkVersion by extra(35)
val androidMinSdkVersion by extra(26)
Expand Down

0 comments on commit dddf0ae

Please sign in to comment.