Skip to content

Commit

Permalink
Publish correct package
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 2, 2022
1 parent dd7a6f6 commit 480ae64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: adopt
distribution: temurin
java-version: 17
cache: gradle

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

- name: Build
run: gradle build

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: adopt
distribution: temurin
java-version: 17
cache: gradle

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

- name: Run gradle build and publish
run: gradle build publish -PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}

Expand All @@ -41,7 +38,7 @@ jobs:
shell: bash
id: extract_version
run: |
version=`./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'`
version=`gradle properties --console=plain -q | grep "^version:" | awk '{printf $2}'`
echo "::set-output name=version::$version"
- name: Create GitHub Release
Expand All @@ -51,4 +48,4 @@ jobs:
prerelease: false
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
files: |
build/libs/*-all.jar
build/libs/*[0-9].jar
3 changes: 0 additions & 3 deletions guiy-example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import Com_mineinabyss_conventions_platform_gradle.Deps
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

val idofrontVersion: String by project

plugins {
Expand Down

0 comments on commit 480ae64

Please sign in to comment.