Skip to content

Commit

Permalink
Merge pull request #99 from Shynixn/development
Browse files Browse the repository at this point in the history
Merge changes to master --release
  • Loading branch information
Shynixn authored Mar 5, 2023
2 parents 70e4170 + 167b10f commit 5fc0317
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 22 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,28 @@ jobs:
asset_name: MCCoroutine-Minestom-Core.jar
asset_content_type: application/jar

- name: Upload Fabric Api to Github
if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/MCCoroutine/MCCoroutine/mccoroutine-fabric-api/build/libs/mccoroutine-fabric-api-${{ env.RELEASE_VERSION }}.jar
asset_name: MCCoroutine-Fabric-Api.jar
asset_content_type: application/jar

- name: Upload Fabric Core to Github
if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/MCCoroutine/MCCoroutine/mccoroutine-fabric-core/build/libs/mccoroutine-fabric-core-${{ env.RELEASE_VERSION }}.jar
asset_name: MCCoroutine-Fabric-Core.jar
asset_content_type: application/jar

Documentation:
runs-on: ubuntu-latest
if: "contains(github.ref, 'master')"
Expand All @@ -228,6 +250,7 @@ jobs:
./gradlew generateBungeeCordJavaDocPages > /dev/null
./gradlew generateVelocityJavaDocPages > /dev/null
./gradlew generateMinestomJavaDocPages > /dev/null
./gradlew generateFabricJavaDocPages > /dev/null
sudo apt-get install -y mkdocs
pip install mkdocs-material
pip install Pygments
Expand Down
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tasks.register("printVersion") {

subprojects {
group 'com.github.shynixn.mccoroutine'
version '2.10.0'
version '2.11.0'

sourceCompatibility = 1.8

Expand Down Expand Up @@ -202,3 +202,12 @@ task generateMinestomJavaDocPages(type: org.jetbrains.dokka.gradle.DokkaTask) {
}
}
}

task generateFabricJavaDocPages(type: org.jetbrains.dokka.gradle.DokkaTask) {
dokkaSourceSets {
named("main") {
outputDirectory = file("docs/apidocs")
sourceRoots.from(file("mccoroutine-fabric-api/src/main/java"))
}
}
}
28 changes: 14 additions & 14 deletions docs/wiki/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,53 @@ In order to use the MCCoroutine Kotlin API, you need to include the following li

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.11.0")
}
```

=== "BungeeCord"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-core:2.11.0")
}
```

=== "Sponge"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-core:2.11.0")
}
```

=== "Velocity"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-core:2.11.0")
}
```

=== "Minestom"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-core:2.11.0")
}
```

=== "Fabric"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.11.0")
}
```

Expand All @@ -78,8 +78,8 @@ dependencies {
**plugin.yml**
```yaml
libraries:
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.10.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.10.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.11.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.11.0
```

=== "Other Server"
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/docs/unittests.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ feedback to the real environment.

```kotlin
dependencies {
testImplementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-test:2.10.0")
testImplementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-test:2.11.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion mccoroutine-bukkit-sample/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCCoroutine-Sample
version: 2.10.0
version: 2.11.0
author: Shynixn
main: com.github.shynixn.mccoroutine.bukkit.sample.MCCoroutineSamplePlugin
commands:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCCoroutine-Sample
version: 2.10.0
version: 2.11.0
author: Shynixn
main: com.github.shynixn.mccoroutine.bungeecord.sample.MCCoroutineSamplePlugin
commands:
Expand Down
4 changes: 2 additions & 2 deletions mccoroutine-fabric-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repositories {
mavenLocal()
}
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.10.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.11.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.11.0")

minecraft("com.mojang", "minecraft", project.extra["minecraft_version"] as String)
mappings("net.fabricmc", "yarn", project.extra["yarn_mappings"] as String, null, "v2")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"entrypoint": "com.github.shynixn.mccoroutine.minestom.sample.extension.MCCoroutineSampleExtension",
"name": "MCCoroutineSampleExtension",
"version": "2.10.0"
"version": "2.11.0"
}
2 changes: 1 addition & 1 deletion mccoroutine-sponge-sample/src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[{
"modid": "mccoroutinesample",
"name": "MCCoroutineSample",
"version": "2.10.0",
"version": "2.11.0",
"description": "MCCoroutineSample is sample plugin to use MCCoroutine in Sponge.",
"authorList": [
"Shynixn"
Expand Down

0 comments on commit 5fc0317

Please sign in to comment.