Implement GitLab CI
This commit is contained in:
parent
05fc6bc4e5
commit
a3ee10d43e
3 changed files with 45 additions and 20 deletions
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
image: gradle:7-jdk17
|
||||
|
||||
stages:
|
||||
- build
|
||||
- publish
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- 'gradle assemble'
|
||||
artifacts:
|
||||
paths:
|
||||
- build/libs/*.jar
|
||||
expire_in: 1 week
|
||||
|
||||
publish-maven:
|
||||
stage: publish
|
||||
script:
|
||||
- 'gradle publish'
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
32
README.md
32
README.md
|
@ -2,14 +2,14 @@
|
|||
|
||||
Quilt interface for [imgui-java](https://github.com/SpaiR/imgui-java), an updated version of [imgui-mc](https://github.com/mjwells2002/imgui-mc).
|
||||
|
||||

|
||||

|
||||
|
||||
## Quick Usage
|
||||
Add the Maven repository and the modImplementation to your `build.gradle`
|
||||
|
||||
```
|
||||
maven {
|
||||
url "https://maven.eviee.gay/imgui-quilt"
|
||||
url "https://git.gaycatgirl.sex/api/v4/projects/32/packages/maven"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -23,20 +23,20 @@ Use ImGui methods in `render()` of the `Renderables` interface.
|
|||
|
||||
Example:
|
||||
```java
|
||||
ImGuiQuilt.renderstack.add(new Renderable() {
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Profiling Name";
|
||||
}
|
||||
ImGuiQuilt.renderstack.add(new Renderable() {
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Profiling Name";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Theme getTheme() {
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public Theme getTheme() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
ImGui.text("Example Text Element");
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void render() {
|
||||
ImGui.text("Example Text Element");
|
||||
}
|
||||
});
|
||||
```
|
||||
|
|
12
build.gradle
12
build.gradle
|
@ -114,10 +114,14 @@ publishing {
|
|||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
maven {
|
||||
url "https://maven.eviee.gay/imgui-quilt"
|
||||
credentials {
|
||||
username = System.getenv('publishUser')
|
||||
password = System.getenv('publishToken')
|
||||
url "https://git.gaycatgirl.sex/api/v4/projects/32/packages/maven"
|
||||
name "GitLab"
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Job-Token"
|
||||
value = System.getenv('CI_JOB_TOKEN')
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue