@@ -30,13 +30,15 @@ jobs:
3030 run : |
3131 mvn -B clean verify -Dmongodb.version="${{ matrix.mongodb-version }}"
3232
33- - name : Upload build artifacts for Docker jobs
33+ - name : Upload build artifacts
3434 if : matrix.mongodb-version == '8.3'
3535 uses : actions/upload-artifact@v6
3636 with :
3737 name : restheart-artifacts
3838 path : |
3939 core/target/restheart.jar
40+ core/target/restheart.tar.gz
41+ core/target/restheart.zip
4042 core/target/lib/*.jar
4143 core/target/plugins/*.jar
4244 core/target/plugins/lib/*.jar
@@ -48,22 +50,15 @@ jobs:
4850 runs-on : ubuntu-latest
4951 outputs :
5052 version : ${{ steps.set_version.outputs.version }}
51- strategy :
52- matrix :
53- mongodb-version : ["8.3"]
54- timeout-minutes : 20
53+ timeout-minutes : 10
5554 steps :
5655 - uses : actions/checkout@v6
5756
58- - name : Set up JDK 25
59- uses : actions/setup-java @v5
57+ - name : Download build artifacts
58+ uses : actions/download-artifact @v5
6059 with :
61- distribution : " graalvm"
62- java-version : " 25"
63- cache : " maven"
64-
65- - name : Build and Test
66- run : mvn -B clean verify -Dmongodb.version="${{ matrix.mongodb-version }}"
60+ name : restheart-artifacts
61+ path : core/target/
6762
6863 - name : Set VERSION
6964 id : set_version
7267 echo "VERSION=$VERSION" >> $GITHUB_ENV
7368 echo "version=$VERSION" >> $GITHUB_OUTPUT
7469
75- - name : Extract Version Components
76- id : extract_version
77- run : |
78- MAJOR=$(echo "${{ env.VERSION }}" | cut -d '.' -f 1)
79- MINOR=$(echo "${{ env.VERSION }}" | cut -d '.' -f 2)
80- PATCH=$(echo "${{ env.VERSION }}" | cut -d '.' -f 3)
81-
82- # Export the major, minor, and patch versions as environment variables
83- echo "MAJOR=$MAJOR" >> $GITHUB_ENV
84- echo "MINOR=$MINOR" >> $GITHUB_ENV
85- echo "PATCH=$PATCH" >> $GITHUB_ENV
86-
8770 - name : Upload GitHub release
8871 uses : softprops/action-gh-release@v3
8972 env :
@@ -163,7 +146,7 @@ jobs:
163146 - name : Set up JDK 25
164147 uses : actions/setup-java@v5
165148 with :
166- distribution : " temurin "
149+ distribution : " graalvm "
167150 java-version : " 25"
168151 cache : " maven"
169152
0 commit comments