Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/19_fix_jdstyp…
Browse files Browse the repository at this point in the history
…ography
  • Loading branch information
oheunchan07 committed Jun 17, 2024
2 parents 0b1db24 + 42beb19 commit 8b20bfa
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
java-package: 'jdk'
architecture: 'x64'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Deploy to JitPack
run: ./gradlew publish

- name: Notify deployment success
run: echo "Deployment to JitPack was successful!"
16 changes: 16 additions & 0 deletions JDS-component/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrainsKotlinAndroid)
id("maven-publish")
id("kotlin-parcelize")
id("kotlin-kapt")
}

afterEvaluate {
publishing {
publications {
register("release", MavenPublication::class) {
from(components["release"])
version="1.0.2"
artifactId="JDS"
groupId="com.github.jds"
}
}
}
}

android {
Expand Down
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

// Top-level build file where you can
// add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath("com.github.dcendents:android-maven-gradle-plugin:2.1")
}
}

plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
Expand Down

0 comments on commit 8b20bfa

Please sign in to comment.