-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (48 loc) · 1.6 KB
/
CI deploy.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
53
54
55
56
57
58
59
name: CI deploy
on: [ push, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout DBeaver
uses: actions/checkout@v2
with:
repository: dbeaver/dbeaver
path: dbeaver
- name: Build DBeaver
working-directory: dbeaver/
run: mvn clean install
- name: Checkout OrbisRCP
uses: actions/checkout@v2
with:
repository: orbisgis/orbisrcp
ref: p2-repository
# Configure git user in order to sign release with OrbisGIS user.
- name: Configure Git User
run: |
git config user.email "[email protected]"
git config user.name OrbisGIS
- name: Clone and build OrbisRCP repo
run: |
git clone https://github.com/orbisgis/orbisrcp
cd orbisrcp
git clone https://github.com/GroovyLanguageServer/groovy-language-server
cd groovy-language-server
./gradlew build
cd ..
ls plugins/dependencies
mkdir plugins/dependencies/libs
cp groovy-language-server/build/libs/groovy-language-server-all.jar ./plugins/dependencies/libs/groovy-language-server.jar
mvn clean install -Dmaven.test.skip=true
cd ..
unzip -o -qq orbisrcp/p2/target/p2-1.0.0-SNAPSHOT.zip -d ./
rm -r orbisrcp
- name: Push P2 branch
run: |
git add *
git commit -a -m "Update P2 repo."
git push origin p2-repository