Skip to content

Commit d63e467

Browse files
committed
release: version 0.1
1 parent 50cd79a commit d63e467

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ jobs:
4343
ORG_GRADLE_PROJECT_spongePassword: ${{ secrets.SPONGE_MAVEN_REPO_PASSWORD }}
4444
ORG_GRADLE_PROJECT_spongeSigningKey: ${{ secrets.SPONGE_SIGNING_KEY }}
4545
ORG_GRADLE_PROJECT_spongeSigningPassword: ${{ secrets.SPONGE_SIGNING_PASSWORD }}
46+
ORG_GRADLE_PROJECT_pluginPortalApiKey: ${{ secrets.GRADLE_PLUGIN_PORTAL_KEY }}
47+
ORG_GRADLE_PROJECT_pluginPortalApiSecret: ${{ secrets.GRADLE_PLUGIN_PORTAL_SECRET }}

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Otherwise, to get a workspace up and going immediately it is as simple as
1414
```
1515
plugins {
1616
java
17-
id("org.spongepowered.gradle.vanilla") version "0.1-SNAPSHOT"
17+
id("org.spongepowered.gradle.vanilla") version "0.1"
1818
}
1919
2020
group = "org.example"
@@ -57,7 +57,7 @@ your system you can instead run the supplied Gradle wrapper `gradlew`)*
5757
<tbody>
5858
<tr>
5959
<td valign="top"><b>0.1</b></td>
60-
<td valign="top">January 2021</td>
60+
<td valign="top">February 2021</td>
6161
<td valign="top">
6262
<ul>
6363
<li>Initial Release</li>

build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ plugins {
1010
}
1111

1212
group = "org.spongepowered"
13-
version = "0.1-SNAPSHOT"
13+
version = "0.1"
1414

1515
repositories {
16-
maven("https://repo-new.spongepowered.org/repository/maven-public/") {
16+
maven("https://repo.spongepowered.org/repository/maven-public/") {
1717
name = "sponge"
1818
}
1919
}
@@ -126,6 +126,18 @@ pluginBundle {
126126
}
127127
}
128128

129+
// Needed to publish plugins using GH actions secrets
130+
131+
fun copyProperty(definition: String, target: String) {
132+
val property = project.findProperty(definition)
133+
if (property != null) {
134+
project.extra[target] = property
135+
}
136+
}
137+
138+
copyProperty("pluginPortalApiKey", "gradle.publish.key")
139+
copyProperty("pluginPortalApiSecret", "gradle.publish.secret")
140+
129141
publishing {
130142
publications {
131143
withType(MavenPublication::class).configureEach {

0 commit comments

Comments
 (0)