-
-
Notifications
You must be signed in to change notification settings - Fork 99
45 lines (36 loc) · 1.48 KB
/
CT_Push.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Only CI/CT
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Get version
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) " >> $GITHUB_ENV
- name: Build and Integration Tests
run: mvn -B package --file pom.xml
- name: Clean Install
run: |
export REPLICADB_RELEASE_VERSION=${{ env.version }}
echo ${REPLICADB_RELEASE_VERSION}
mvn clean install -Dmaven.javadoc.skip=true -DskipTests -B -V -P release
cp ./target/ReplicaDB-*.jar .
mkdir lib
echo ${REPLICADB_RELEASE_VERSION}
cp ./target/lib/* ./lib
tar -zcvf ReplicaDB-v${REPLICADB_RELEASE_VERSION}.tar.gz ReplicaDB-*.jar README.md lib conf bin LICENSE
zip -r -X ReplicaDB-v${REPLICADB_RELEASE_VERSION}.zip ReplicaDB-*.jar README.md lib conf bin LICENSE
ls -lahtr