Skip to content

Commit 5d452ef

Browse files
committed
Update publish release artifacts action
1 parent b32d536 commit 5d452ef

File tree

1 file changed

+22
-35
lines changed

1 file changed

+22
-35
lines changed

.github/workflows/presto-release-publish.yml

+22-35
Original file line numberDiff line numberDiff line change
@@ -38,34 +38,7 @@ env:
3838
IMAGE_NAME: presto-native
3939

4040
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-
6741
publish-maven-artifacts:
68-
if: ${{ github.event.inputs.publish_maven == 'true' }}
6942
runs-on: ubuntu-latest
7043
environment: release
7144
timeout-minutes: 30
@@ -145,7 +118,29 @@ jobs:
145118
</settings>
146119
EOL
147120
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+
148142
- name: Release Maven Artifacts
143+
if: ${{ github.event.inputs.publish_maven == 'true' }}
149144
run: |
150145
unset MAVEN_CONFIG
151146
./mvnw -s ${{ github.workspace }}/settings.xml -V -B -U -e -T1C deploy \
@@ -163,14 +158,6 @@ jobs:
163158
env:
164159
GPG_TTY: $(tty)
165160

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
174161

175162
publish-docker-images:
176163
if: ${{ github.event.inputs.publish_docker == 'true' }}

0 commit comments

Comments
 (0)