Skip to content

Commit 8425843

Browse files
committed
Upload jar to release instead of publishing a package
1 parent eadbac3 commit 8425843

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

.github/workflows/gradle-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
echo "Building plugin ${{ env.PLUGIN_NAME }}, located at ${{ env.PLUGIN_DIR }}. Using Gradle user home at ${{ env.GRADLE_USER_HOME }}"
3939
./gradlew -p ${{ env.PLUGIN_DIR }} clean build
4040
41-
- name: Publish to GitHub Packages
42-
run: ./gradlew publish
43-
env:
44-
GITHUB_ACTOR: ${{ github.actor }}
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Upload JAR to GitHub Release
42+
uses: softprops/action-gh-release@v2
43+
with:
44+
files: build/libs/dicom-edit-routing-*.jar

build.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ plugins {
88
id "org.nrg.xnat.build.xnat-data-builder" version "1.8.10"
99
id "me.qoomon.git-versioning" version "6.4.2"
1010
id "jacoco"
11-
id "maven-publish"
1211
}
1312

1413
ext {
@@ -174,24 +173,3 @@ jacocoTestReport {
174173
}
175174

176175
compileJava.dependsOn project.tasks["xnatDataBuilder"]
177-
178-
publishing {
179-
publications {
180-
mavenJava(MavenPublication) {
181-
from components.java
182-
groupId = project.group
183-
artifactId = rootProject.name
184-
version = project.version
185-
}
186-
}
187-
repositories {
188-
maven {
189-
name = "GithubPackages"
190-
url = uri("https://maven.pkg.github.com/ParisBrainInstitute/DicomEdit-Routing")
191-
credentials {
192-
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
193-
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
194-
}
195-
}
196-
}
197-
}

0 commit comments

Comments
 (0)