File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2
+ # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3
+
4
+ name : Geyser Build Branch
5
+
6
+ on :
7
+ release :
8
+ types : [created]
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : actions/cache@v2
18
+ with :
19
+ path : ~/.m2/repository
20
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-maven-
23
+ - name : Set up JDK 1.8
24
+ uses : actions/setup-java@v1
25
+ with :
26
+ java-version : 1.8
27
+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
28
+ settings-path : ${{ github.workspace }} # location for the settings.xml file
29
+ - name : submodules-init
30
+ uses : snickerbockers/submodules-init@v4
31
+
32
+ - name : Build with Maven
33
+ run : mvn -B package
34
+
35
+ - name : Archive artifacts (Geyser Standalone)
36
+ uses : actions/upload-artifact@v2
37
+ if : success()
38
+ with :
39
+ name : Geyser Standalone
40
+ path : bootstrap/standalone/target/Geyser.jar
41
+ - name : Archive artifacts (Geyser Spigot)
42
+ uses : actions/upload-artifact@v2
43
+ if : success()
44
+ with :
45
+ name : Geyser Spigot
46
+ path : bootstrap/spigot/target/Geyser-Spigot.jar
47
+
48
+ - name : Publish to GitHub Packages Apache Maven
49
+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
50
+ env :
51
+ GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments