-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from xpenatan/master
Release v1.0.0-b9
- Loading branch information
Showing
31 changed files
with
410 additions
and
253 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ jobs: | |
with: | ||
isRelease: true | ||
shouldUpload: true | ||
secrets: inherit | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Create Tag | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release' | ||
|
||
jobs: | ||
add-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: madhead/read-java-properties@latest | ||
id: version | ||
with: | ||
file: "./gradle.properties" | ||
property: version | ||
default: 0.0.1 | ||
|
||
- name: Create Git tag | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const versionOutputs = ${{ toJSON(steps.version.outputs) }}; | ||
var version = versionOutputs.value; | ||
console.log("Version: " + version); | ||
var ref = "refs/tags/" + version | ||
github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: ref, | ||
sha: context.sha | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
import java.io.File | ||
import java.util.* | ||
|
||
object LibExt { | ||
const val groupId = "com.github.xpenatan.gdx-teavm" | ||
val libVersion: String = getVersion("1.0.0", "b8") | ||
|
||
val libVersion: String = getVersion() | ||
|
||
const val gdxVersion = "1.12.1" | ||
const val teaVMVersion = "0.10.0-dev-1" | ||
const val teaVMVersion = "0.9.2" | ||
|
||
const val gdxImGuiVersion = "1.0.0-SNAPSHOT" | ||
const val gdxFrameViewportVersion = "1.0.0-SNAPSHOT" | ||
const val gdxMultiViewVersion = "1.0.0-SNAPSHOT" | ||
|
||
const val reflectionVersion = "0.10.2" | ||
const val jettyVersion = "11.0.13" | ||
|
||
const val aiVersion = "1.8.2" | ||
} | ||
|
||
private fun getVersion(releaseVersion: String, suffix: String = ""): String { | ||
private fun getVersion(): String { | ||
val file = File("gradle.properties") | ||
val properties = Properties() | ||
properties.load(file.inputStream()) | ||
val version = properties.getProperty("version") | ||
|
||
val isRelease = System.getenv("RELEASE") | ||
var libVersion = "${releaseVersion}-SNAPSHOT" | ||
var libVersion = "-SNAPSHOT" | ||
if(isRelease != null && isRelease.toBoolean()) { | ||
libVersion = releaseVersion + if(suffix.isNotEmpty()) "-${suffix}" else "" | ||
libVersion = version | ||
} | ||
System.out.println("Gdx-teaVM Version: " + libVersion) | ||
println("gdx-teavm Version: $libVersion") | ||
return libVersion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.