Skip to content

Commit ddf405c

Browse files
authored
Merge pull request #1 from Les-Projects/V1
V1
2 parents b8191db + b3b75ad commit ddf405c

File tree

76 files changed

+6492
-1161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6492
-1161
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"projectName": "mcss-api-java",
3+
"projectOwner": "Les-Projects",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"linkToUsage": false,
7+
"skipCi": true,
8+
"contributors": []
9+
}

.github/workflows/Maven-Test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Maven-Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
jobs:
8+
download-mcss:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- run: |
12+
wget -O mcss.7z "${{ secrets.MCSS_DOWNLOAD_LINK }}"
13+
7z x ./mcss.7z
14+
ls
15+
sudo chmod +x GithubWorkflowsTest/mcss.exe
16+
sudo apt update
17+
sudo apt install -y screen
18+
shell: bash
19+
test:
20+
runs-on: ubuntu-latest
21+
needs: download-mcss
22+
steps:
23+
- uses: actions/checkout@v2
24+
name: Run tests
25+
- uses: actions/setup-java@v3
26+
with:
27+
distribution: 'adopt'
28+
java-version: '17'
29+
- run: |
30+
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
31+
sudo dpkg -i packages-microsoft-prod.deb
32+
rm packages-microsoft-prod.deb
33+
sudo apt-get update
34+
sudo apt-get install -y dotnet-sdk-6.0
35+
sudo screen -d -m GithubWorkflowsTest/mcss.exe --no-ui
36+
sleep 35
37+
sudo screen -ls
38+
mvn --batch-mode --update-snapshots package
39+
shell: bash
40+
env:
41+
MCSS_API_TOKEN: ${{ secrets.MCSS_API_KEY }}
42+
MCSS_API_IP: ${{ secrets.MCSS_API_IP }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
download-mcss:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- run: |
10+
wget -O mcss.7z "${{ secrets.MCSS_DOWNLOAD_LINK }}"
11+
7z x ./mcss.7z
12+
ls
13+
sudo chmod +x GithubWorkflowsTest/mcss.exe
14+
sudo apt update
15+
sudo apt install screen
16+
shell: bash
17+
publish:
18+
needs: download-mcss
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
packages: write
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-java@v3
26+
with:
27+
java-version: '17'
28+
distribution: 'adopt'
29+
- name: Start MCSS
30+
run: |
31+
sudo screen -d -m GithubWorkflowsTest/mcss.exe --no-ui
32+
sleep 15
33+
- name: Publish package
34+
run: mvn --batch-mode deploy
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
MCSS_API_TOKEN: ${{ secrets.MCSS_API_KEY }}
38+
MCSS_API_IP: ${{ secrets.MCSS_API_IP }}

.gitignore

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
# When using Gradle or Maven with auto-import, you should exclude module files,
3232
# since they will be recreated, and may cause churn. Uncomment if using
3333
# auto-import.
34-
# .idea/artifacts
35-
# .idea/compiler.xml
36-
# .idea/jarRepositories.xml
37-
# .idea/modules.xml
38-
# .idea/*.iml
39-
# .idea/modules
40-
# *.iml
41-
# *.ipr
34+
.idea/artifacts
35+
.idea/compiler.xml
36+
.idea/jarRepositories.xml
37+
.idea/modules.xml
38+
.idea/*.iml
39+
.idea/modules
40+
*.iml
41+
*.ipr
4242

4343
# CMake
4444
cmake-build-*/
@@ -75,3 +75,23 @@ fabric.properties
7575

7676
# Android studio 3.1+ serialized cache file
7777
.idea/caches/build_file_checksums.ser
78+
secrets.gradle
79+
80+
# Eclipse
81+
.classpath
82+
.project
83+
.settings/
84+
85+
# Intellij
86+
.idea/
87+
*.iml
88+
89+
# Mac
90+
.DS_Store
91+
92+
# Maven
93+
log/
94+
target/
95+
.idea/discord.xml
96+
.idea/compiler.xml
97+
.idea/misc.xml
-17 Bytes
Binary file not shown.

.gradle/7.1/dependencies-accessors/gc.properties

Whitespace-only changes.
-19.2 KB
Binary file not shown.
-17 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-18.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)