forked from apache/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 921 Bytes
/
build2.3.yaml
File metadata and controls
33 lines (31 loc) · 921 Bytes
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
name: Maven Package
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
- name: Cache
uses: actions/cache@v2.1.5
with:
path:
~/.m2/repository/
key: maven-linux-hive
- name: Patch for security issues
run: |
wget https://issues.apache.org/jira/secure/attachment/12958418/HIVE-12679.branch-2.3.patch
patch -p0 <HIVE-12679.branch-2.3.patch
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml -DskipTests
env:
GITHUB_TOKEN: ${{ github.token }}