Skip to content

Commit

Permalink
Merge pull request #4 from SimpleFinance/snapshot-upload
Browse files Browse the repository at this point in the history
Fix snapshot publishing
  • Loading branch information
tadfisher authored Jun 25, 2020
2 parents e31877e + 18ff0f7 commit 1efb550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
setup:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 7 additions & 2 deletions test-lab-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,13 @@ publishing {
publications {
matching { it.name == "pluginMaven" }.withType<MavenPublication> {
artifact(tasks.shadowJar.get())
artifact(sourcesJar.get())
artifact(javadocJar.get())

// GitHub Packages appears to be broken when uploading SNAPSHOT JARs with classifiers.
// https://github.community/t/github-package-registry-as-maven-repo-trouble-uploading-artifact/14226
if (!isSnapshot) {
artifact(sourcesJar.get())
artifact(javadocJar.get())
}

groupId = project.group.toString()
artifactId = project.name
Expand Down

0 comments on commit 1efb550

Please sign in to comment.