Skip to content

Commit

Permalink
build: Don't publish snapshots to GH packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Aug 17, 2021
1 parent 2252e95 commit 6600471
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
- name: Publish with Gradle
run: ./gradlew publish --stacktrace
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_spongeSnapshotRepo: ${{ secrets.SPONGE_MAVEN_SNAPSHOT_REPO_URL }}
ORG_GRADLE_PROJECT_spongeReleaseRepo: ${{ secrets.SPONGE_MAVEN_RELEASE_REPO_URL }}
ORG_GRADLE_PROJECT_spongeUsername: ${{ secrets.SPONGE_MAVEN_REPO_USER }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ConfiguratePublishingPlugin : Plugin<Project> {
// Configure repositories
val ghPackagesUser = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
val ghPackagesPassword = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
if (!isRelease && ghPackagesUser != null && ghPackagesPassword != null) {
if (isRelease && ghPackagesUser != null && ghPackagesPassword != null) {
repositories.maven { repo ->
repo.name = "GitHubPackages"
repo.setUrl("https://maven.pkg.github.com/SpongePowered/Configurate")
Expand Down

0 comments on commit 6600471

Please sign in to comment.