File tree 2 files changed +43
-3
lines changed
2 files changed +43
-3
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,32 @@ on: [push]
5
5
jobs :
6
6
build :
7
7
runs-on : ubuntu-latest
8
+ strategy :
9
+ fail-fast : true
8
10
steps :
11
+ # Get the latest commit ID
12
+ - id : commit
13
+ uses : pr-mpt/actions-commit-hash@v1
14
+ # Clone the repo & its submodules
9
15
- uses : actions/checkout@v3
10
16
with :
11
17
submodules : recursive
18
+ # Setup Java & Maven
12
19
- name : Install Java 8
13
20
uses : actions/setup-java@v3
14
21
with :
15
22
java-version : ' 8'
16
23
distribution : ' adopt'
17
24
architecture : x64
18
- - name : build
19
- run : ./compile
25
+ # Compile the project
26
+ - name : Compile the NetHandler
27
+ run : cd NetHandler && mvn clean install
28
+ - name : Compile the API
29
+ run : mvn clean install
30
+ # Create a release with the compiled API jar
31
+ - uses : ncipollo/release-action@v1
32
+ with :
33
+ prerelease : true
34
+ artifacts : " target/CheatBreakerAPI.jar"
35
+ tag : ${{ steps.commit.outputs.short }}
36
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 65
65
</execution >
66
66
</executions >
67
67
</plugin >
68
+ <plugin >
69
+ <groupId >io.github.git-commit-id</groupId >
70
+ <artifactId >git-commit-id-maven-plugin</artifactId >
71
+ <version >4.9.9</version >
72
+ <executions >
73
+ <execution >
74
+ <id >get-the-git-infos</id >
75
+ <goals >
76
+ <goal >revision</goal >
77
+ </goals >
78
+ <phase >initialize</phase >
79
+ </execution >
80
+ </executions >
81
+ <configuration >
82
+ <generateGitPropertiesFile >true</generateGitPropertiesFile >
83
+ <generateGitPropertiesFilename >${project.build.outputDirectory} /git.properties</generateGitPropertiesFilename >
84
+ <includeOnlyProperties >
85
+ <includeOnlyProperty >^git.build.(time|version)$</includeOnlyProperty >
86
+ <includeOnlyProperty >^git.commit.id.(abbrev|full)$</includeOnlyProperty >
87
+ </includeOnlyProperties >
88
+ <commitIdGenerationMode >full</commitIdGenerationMode >
89
+ </configuration >
90
+ </plugin >
68
91
</plugins >
69
92
</build >
70
93
86
109
<version >1.0-SNAPSHOT</version >
87
110
</dependency >
88
111
</dependencies >
89
- </project >
112
+ </project >
You can’t perform that action at this time.
0 commit comments