Change the release text a bit

This commit is contained in:
shedaniel
2021-10-30 23:03:19 +08:00
parent 945da9f36c
commit fe3e7ca82a
3 changed files with 10 additions and 7 deletions

8
body.txt Normal file
View File

@@ -0,0 +1,8 @@
Architectury Templates can be used for setting your own architectury projects, for converting your existing projects to architectury projects, please refer to [Architectury Example Mod](https://github.com/architectury/architectury-example-mod) instead.
The following templates are offered in [Creative Commons Zero v1.0 Universal](https://github.com/architectury/architectury-example-mod/blob/1.17.1/LICENSE), TL;DR: You can do anything (except somethings) with these templates.
Architectury API is added to the templates by default, there are instructions on how to remove them within the buildscripts, depending on the API is **not required** to use the Architectury toolchain.
**Documentation:** [https://docs.architectury.dev/](https://docs.architectury.dev/)
**Discord:** [https://discord.gg/C2RdJDpRBP](https://discord.gg/C2RdJDpRBP)

View File

@@ -18,6 +18,7 @@ task run(type: JavaExec, dependsOn: jar) {
mainClass = "dev.architectury.templates.GenerateTemplatesKt"
environment "CONFIG_PATH", file("generator.config.json").absolutePath
environment "OUTPUT_PATH", file("build/templates").absolutePath
environment "BODY_PATH", file("body.txt").absolutePath
environment "PUBLISH", "true"
environment "GITHUB_TOKEN", System.getenv("GITHUB_TOKEN")
environment "GITHUB_REPOSITORY", System.getenv("GITHUB_REPOSITORY")

View File

@@ -36,13 +36,7 @@ fun main() {
val repository = github.getRepository(System.getenv("GITHUB_REPOSITORY"))
githubRelease = repository.createRelease("release_" + System.getenv("GITHUB_JOB"))
.name("Architectury Templates")
.body("""
|Architectury Templates can be used for setting your own architectury projects, for converting your existing projects to architectury projects, please refer to [Architectury Example Mod](https://github.com/architectury/architectury-example-mod) instead.
|
|The following templates are offered in [Creative Commons Zero v1.0 Universal](https://github.com/architectury/architectury-example-mod/blob/1.17.1/LICENSE), TL;DR: You can do anything with these templates.
|
|Architectury API is added to the templates by default, there are instructions on how to remove them within the buildscripts, depending on the API is **not required** to use the Architectury toolchain.
""".trimMargin())
.body(Paths.get(System.getenv("BODY_PATH")).toFile().readText())
.create()
}
config.versions.forEach { (id, entry) ->