Skip to content

Commit

Permalink
Improving API.
Browse files Browse the repository at this point in the history
(I guess I leave it like this for now)
  • Loading branch information
XyperCode committed May 4, 2024
1 parent 8ca36a5 commit affc95f
Show file tree
Hide file tree
Showing 213 changed files with 4,955 additions and 335 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/java-17-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java 17 CI (MC 1.17-1.20.4)

on:
push:
branches:
- master
- 'dev/**'
pull_request:

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean skriptTestJava17
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: skript-nightly
path: build/libs/*
35 changes: 35 additions & 0 deletions .github/workflows/java-21-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java 21 CI (MC 1.20.6+)

on:
push:
branches:
- master
- 'dev/**'
pull_request:

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean skriptTestJava21
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: skript-nightly
path: build/libs/*
35 changes: 35 additions & 0 deletions .github/workflows/java-8-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java 8 CI (MC 1.13-1.16)

on:
push:
branches:
- master
- 'dev/**'
pull_request:

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean skriptTestJava8
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: skript-nightly
path: build/libs/*
29 changes: 29 additions & 0 deletions .github/workflows/junit-17-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: JUnit (MC 1.17-1.20.4)

on:
push:
branches:
- master
- 'dev/**'
pull_request:

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run JUnit
run: ./gradlew clean JUnitJava17
29 changes: 29 additions & 0 deletions .github/workflows/junit-8-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: JUnit (MC 1.13-1.16)

on:
push:
branches:
- master
- 'dev/**'
pull_request:

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run JUnit
run: ./gradlew clean JUnitJava8
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,15 @@ publishing {
}

repositories {
mavenLocal();

maven {
name = 'repo'
url = 'https://repo.skriptlang.org/releases'
url = 'https://maven.pkg.github.com/XyperCode/base-skript'
name = "BaseSkriptPackages"

credentials {
username = System.getenv('MAVEN_USERNAME')
password = System.getenv('MAVEN_PASSWORD')
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down
22 changes: 22 additions & 0 deletions docs-templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# BaseSkript Documentation Templates

When generating final result, each HTML file is surrounded by template.html,
which provides head element, navigation bar and so on.

## Template Patterns

Patterns have syntax of ${pattern_here}. For example, ${skript.version} is replaced with
current BaseSkript version. Please see below for more...

You can also include other files by using ${include <filename>}. Just please make
sure that those included files don't have tags which are not allowed in position
where include is called.

## Pattern Reference
```
skript.* - Information of BaseSkript
version - BaseSkript's version
include <filename> - Load given file and place them here
generate <expressions/effects/events/types/functions> <loop template file> - Generated reference
content - In template.html, marks the point where other file is placed
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-templates/assets/Logo/Skript Logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-templates/assets/Logo/Skript Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-templates/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions docs-templates/assets/light-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit affc95f

Please sign in to comment.