-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (28 loc) · 1.46 KB
/
maven-publish-packages-v1.x.x.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
name: Impala Build and Publish Packages - v1.x.x
on:
push:
branches:
- v1.x.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get impala-frontend-uber-4.0.0-SNAPSHOT-jar-with-dependencies.jar
run: wget https://www.devworx.co.uk/assets/jars/impala-frontend-uber-4.0.0-SNAPSHOT-jar-with-dependencies.jar
- name: Publish Impala Frontend to Local Repository
run: mvn install:install-file -Dfile=impala-frontend-uber-4.0.0-SNAPSHOT-jar-with-dependencies.jar -DgroupId=uk.co.devworx -DartifactId=impala-frontend-uber -Dversion=1.0.7 -Dpackaging=jar
- name: Maven Set Versions
run: mvn -B versions:set -DnewVersion=1.0.7 --file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password
- name: Deploy Impala Frontend to GitHub Repository
run: mvn deploy:deploy-file -Durl="https://maven.pkg.github.com/DevWorxCo/impala-query-parser" -DrepositoryId=github -Dfile=impala-frontend-uber-4.0.0-SNAPSHOT-jar-with-dependencies.jar -DgroupId=uk.co.devworx -DartifactId=impala-frontend-uber -Dversion=1.0.7 -Dpackaging=jar
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password