Skip to content

Commit 2ad137e

Browse files
authored
Initial commit
0 parents  commit 2ad137e

File tree

20 files changed

+1604
-0
lines changed

20 files changed

+1604
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/workflows/build_test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will build and upload test artifact
2+
# Simple workflow with ignoring condition to prevent unneccessary build
3+
# To download artifact check on job task
4+
5+
name: Build Test Artifact
6+
7+
on:
8+
push:
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
name: Build and Test For example
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
- name: Grant Execute Permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Get current date
22+
id: date
23+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
24+
- name: Change mod version
25+
run: sed -i "s/mod_version.*=.*/mod_version = ${{ steps.date.outputs.date }}/g" gradle.properties
26+
- name: Setup Java
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '21'
30+
distribution: 'zulu'
31+
cache: gradle
32+
- name: Build
33+
uses: gradle/gradle-build-action@v2
34+
with:
35+
arguments: build --info --stacktrace
36+
- name: Upload Build Artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: example-1.12.2-${{ steps.date.outputs.date }}-${{ github.run_number}}
40+
path: build/libs

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run/*
23+
!run/SinglePlayer.txt
24+
runServer/*
25+
!runServer/eula.txt
26+
!runServer/server.properties
27+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Hileb
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)