From c9378f85e69cb8612d607d5b3bbfd9140f15a73f Mon Sep 17 00:00:00 2001 From: Ganendra Afrasya Date: Sun, 26 Apr 2020 21:52:54 +0700 Subject: [PATCH] Revert publishing via Github Package It quite not intuitive for consumers to use --- .github/workflows/publish-release.yml | 39 --------------------------- build.gradle.kts | 23 +++------------- 2 files changed, 3 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/publish-release.yml diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml deleted file mode 100644 index 30534aa..0000000 --- a/.github/workflows/publish-release.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Publish release - -on: - release: - types: [published] - -jobs: - publish-release: - runs-on: ubuntu-latest - - steps: - - name: Checkout latest code - uses: actions/checkout@v2 - - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Setup build cache - uses: actions/cache@v1 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Make gradlew executable - run: chmod +x ./gradlew - - name: Publish artifact - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # The GITHUB_REF tag comes in the format 'refs/tags/xxx'. - # So if we split on '/' and take the 3rd value, we can get the release name. - run: | - NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3) - echo "New version: ${NEW_VERSION}" - echo "Github username: ${GITHUB_ACTOR}" - ./gradlew -Pversion=${NEW_VERSION} publish \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 1124496..cbe6f3c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ plugins { kotlin("jvm") version "1.3.61" maven - `maven-publish` } repositories { @@ -11,6 +10,9 @@ repositories { maven("https://kotlin.bintray.com/kotlinx") } +group = "com.github.GSculerlor" +version = "1.1.0" + dependencies { implementation(kotlin("stdlib-jdk8")) @@ -41,23 +43,4 @@ tasks { compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } -} - -publishing { - publications { - register("gpr", MavenPublication::class) { - from(components["java"]) - } - } - - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/GSculerlor/JikanKt") - credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") - } - } - } } \ No newline at end of file