Skip to content

Commit

Permalink
release: version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Feb 1, 2021
1 parent 50cd79a commit d63e467
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ jobs:
ORG_GRADLE_PROJECT_spongePassword: ${{ secrets.SPONGE_MAVEN_REPO_PASSWORD }}
ORG_GRADLE_PROJECT_spongeSigningKey: ${{ secrets.SPONGE_SIGNING_KEY }}
ORG_GRADLE_PROJECT_spongeSigningPassword: ${{ secrets.SPONGE_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_pluginPortalApiKey: ${{ secrets.GRADLE_PLUGIN_PORTAL_KEY }}
ORG_GRADLE_PROJECT_pluginPortalApiSecret: ${{ secrets.GRADLE_PLUGIN_PORTAL_SECRET }}
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Otherwise, to get a workspace up and going immediately it is as simple as
```
plugins {
java
id("org.spongepowered.gradle.vanilla") version "0.1-SNAPSHOT"
id("org.spongepowered.gradle.vanilla") version "0.1"
}
group = "org.example"
Expand Down Expand Up @@ -57,7 +57,7 @@ your system you can instead run the supplied Gradle wrapper `gradlew`)*
<tbody>
<tr>
<td valign="top"><b>0.1</b></td>
<td valign="top">January 2021</td>
<td valign="top">February 2021</td>
<td valign="top">
<ul>
<li>Initial Release</li>
Expand Down
16 changes: 14 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ plugins {
}

group = "org.spongepowered"
version = "0.1-SNAPSHOT"
version = "0.1"

repositories {
maven("https://repo-new.spongepowered.org/repository/maven-public/") {
maven("https://repo.spongepowered.org/repository/maven-public/") {
name = "sponge"
}
}
Expand Down Expand Up @@ -126,6 +126,18 @@ pluginBundle {
}
}

// Needed to publish plugins using GH actions secrets

fun copyProperty(definition: String, target: String) {
val property = project.findProperty(definition)
if (property != null) {
project.extra[target] = property
}
}

copyProperty("pluginPortalApiKey", "gradle.publish.key")
copyProperty("pluginPortalApiSecret", "gradle.publish.secret")

publishing {
publications {
withType(MavenPublication::class).configureEach {
Expand Down

0 comments on commit d63e467

Please sign in to comment.