-
Notifications
You must be signed in to change notification settings - Fork 30
52 lines (49 loc) · 1.53 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CD
on:
workflow_dispatch: {}
env:
HADOOP_USER_NAME: hive
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
server-id: github
cache: 'maven'
- name: Configure Problem Matchers
run: |
echo "::add-matcher::.github/problem-matcher.json"
echo "::remove-matcher owner=java::"
- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: Prepare release
run: ./mvnw -B release:prepare
- name: Save version number in env
run: |
echo "VERSION=$(grep 'project.rel.org.ebyhr\\:trino-storage=' release.properties | cut -d'=' -f2)" >> $GITHUB_ENV
- uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: v${{ env.VERSION }}
title: v${{ env.VERSION }}
files: |
target/*.zip
- name: Publish JAR
run: ./mvnw -B release:perform -Darguments=-Dgpg.skip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload test report
uses: actions/upload-artifact@v4
if: always()
with:
name: test report ${{ github.job }}
path: |
**/surefire-reports/TEST-*.xml
retention-days: 5