38
38
IMAGE_NAME : presto-native
39
39
40
40
jobs :
41
- maven-build :
42
- runs-on : ubuntu-latest
43
- steps :
44
- - name : Checkout
45
- uses : actions/checkout@v4
46
- with :
47
- ref : ${{ env.VERSION }}
48
-
49
- - name : Set up JDK
50
- uses : actions/setup-java@v4
51
- with :
52
- java-version : ' 11'
53
- distribution : ' temurin'
54
-
55
- - name : Maven build
56
- run : mvn clean install -DskipTests
57
-
58
- - name : Upload artifacts
59
- uses : actions/upload-artifact@v4
60
- with :
61
- name : presto-artifacts-${{ env.VERSION }}
62
- retention-days : 1
63
- path : |
64
- presto-server/target/presto-server-*.tar.gz
65
- presto-cli/target/presto-cli-*-executable.jar
66
-
67
41
publish-maven-artifacts :
68
- if : ${{ github.event.inputs.publish_maven == 'true' }}
69
42
runs-on : ubuntu-latest
70
43
environment : release
71
44
timeout-minutes : 30
@@ -145,7 +118,29 @@ jobs:
145
118
</settings>
146
119
EOL
147
120
121
+ - name : Maven build
122
+ run : mvn clean install -DskipTests
123
+
124
+ - name : Upload artifacts
125
+ uses : actions/upload-artifact@v4
126
+ with :
127
+ name : presto-artifacts-${{ env.VERSION }}
128
+ retention-days : 1
129
+ path : |
130
+ presto-server/target/presto-server-*.tar.gz
131
+ presto-cli/target/presto-cli-*-executable.jar
132
+
133
+ - name : Upload artifacts
134
+ uses : actions/upload-artifact@v4
135
+ with :
136
+ name : presto-artifacts-${{ env.VERSION }}
137
+ retention-days : 1
138
+ path : |
139
+ presto-server/target/presto-server-*.tar.gz
140
+ presto-cli/target/presto-cli-*-executable.jar
141
+
148
142
- name : Release Maven Artifacts
143
+ if : ${{ github.event.inputs.publish_maven == 'true' }}
149
144
run : |
150
145
unset MAVEN_CONFIG
151
146
./mvnw -s ${{ github.workspace }}/settings.xml -V -B -U -e -T1C deploy \
@@ -163,14 +158,6 @@ jobs:
163
158
env :
164
159
GPG_TTY : $(tty)
165
160
166
- - name : Upload artifacts
167
- uses : actions/upload-artifact@v4
168
- with :
169
- name : presto-artifacts-${{ env.VERSION }}
170
- retention-days : 1
171
- path : |
172
- presto-server/target/presto-server-*.tar.gz
173
- presto-cli/target/presto-cli-*-executable.jar
174
161
175
162
publish-docker-images :
176
163
if : ${{ github.event.inputs.publish_docker == 'true' }}
0 commit comments