-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish artifacts to Maven Central (#6)
- Loading branch information
Showing
13 changed files
with
378 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
categories: | ||
- title: 🎉 New features | ||
labels: | ||
- Feature | ||
- title: ⭐ Enhancements | ||
labels: | ||
- Enhancement | ||
- title: 🐞 Bug fixes | ||
labels: | ||
- Bug | ||
- title: 📝 Documentation | ||
labels: | ||
- Documentation | ||
- title: Other changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Release | ||
|
||
on: | ||
# Manual trigger | ||
workflow_dispatch: | ||
inputs: | ||
VERSION_INCREMENT: | ||
description: 'The version number part to increment (major.minor.patch)' | ||
default: Minor | ||
type: choice | ||
options: | ||
- Major | ||
- Minor | ||
- Patch | ||
required: false | ||
VERSION_OVERRIDE: | ||
description: 'Version override (when not incrementing the previous version)' | ||
type: string | ||
required: false | ||
|
||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
|
||
jobs: | ||
|
||
build: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 and gradle cache | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'gradle' | ||
|
||
- name: Run release | ||
id: release | ||
run: | | ||
if [ -n "$VERSION_OVERRIDE" ]; then | ||
gradle release -Prelease.forceVersion=${VERSION_OVERRIDE} | ||
else | ||
gradle release -Prelease.versionIncrementer=increment${VERSION_INCREMENT} | ||
fi | ||
env: | ||
VERSION_INCREMENT: ${{ github.event.inputs.VERSION_INCREMENT }} | ||
VERSION_OVERRIDE: ${{ github.event.inputs.VERSION_OVERRIDE }} | ||
|
||
# When the 'github.token' is used events are not generated to prevent users from accidentally creating recursive workflow runs. | ||
# See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow | ||
- name: Create release | ||
run: | | ||
git push --follow-tags | ||
gh workflow run ci_cd.yml --ref $RELEASED_VERSION | ||
gh release create $RELEASED_VERSION --generate-notes | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
RELEASED_VERSION: ${{ steps.release.outputs.released-version }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +0,0 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
ext.kotlin_version = "2.0.20" | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:8.7.2' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath 'com.google.gms:google-services:4.4.2' | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.