-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (59 loc) · 3.08 KB
/
build-bundle.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build Bundle
on:
push:
tags:
- "v*"
permissions: write-all
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Getting soft-iot-mapping-devices dependency
uses: wei/wget@v1
with:
args: https://github.com/larsid/soft-iot-mapping-devices/releases/download/v1.0.0/soft-iot-mapping-devices-1.0-SNAPSHOT.jar
- name: Getting soft-iot-node-type dependency
uses: wei/wget@v1
with:
args: https://github.com/AllanCapistrano/soft-iot-node-type/releases/download/v1.3.1/soft-iot-node-type-1.0-SNAPSHOT.jar
- name: Getting SOFT-IoT-DLT-Client-Tangle-Hornet dependency
uses: wei/wget@v1
with:
args: https://github.com/AllanCapistrano/soft-iot-dlt-client-tangle-hornet/releases/download/v1.4.0/soft-iot-dlt-client-tangle-hornet-1.0-SNAPSHOT.jar
- name: Getting SOFT-IoT-Python-to-Java dependency
uses: wei/wget@v1
with:
args: https://github.com/AllanCapistrano/soft-iot-python-to-java/releases/download/v1.1.1/soft-iot-python-to-java-1.0-SNAPSHOT.jar
- name: Getting SOFT-IoT-Write-CSV dependency
uses: wei/wget@v1
with:
args: https://github.com/larsid/soft-iot-write-csv/releases/download/v1.0.1/soft-iot-write-csv-1.0-SNAPSHOT.jar
- name: Installing soft-iot-mapping-devices
run: mvn install:install-file -Dfile=./soft-iot-mapping-devices-1.0-SNAPSHOT.jar -DgroupId=io.github.larsid -DartifactId=soft-iot-mapping-devices -Dversion=1.0-SNAPSHOT -Dpackaging=jar
- name: Installing soft-iot-node-type
run: mvn install:install-file -Dfile=./soft-iot-node-type-1.0-SNAPSHOT.jar -DgroupId=br.uefs.larsid.iot.soft -DartifactId=soft-iot-node-type -Dversion=1.0-SNAPSHOT -Dpackaging=jar
- name: Installing SOFT-IoT-DLT-Client-Tangle-Hornet
run: mvn install:install-file -Dfile=./soft-iot-dlt-client-tangle-hornet-1.0-SNAPSHOT.jar -DgroupId=br.uefs.larsid.iot.soft -DartifactId=soft-iot-dlt-client-tangle-hornet -Dversion=1.0-SNAPSHOT -Dpackaging=jar
- name: Installing SOFT-IoT-Python-to-Java
run: mvn install:install-file -Dfile=./soft-iot-python-to-java-1.0-SNAPSHOT.jar -DgroupId=br.uefs.larsid.iot.soft -DartifactId=soft-iot-python-to-java -Dversion=1.0-SNAPSHOT -Dpackaging=jar
- name: Installing SOFT-IoT-Write-CSV
run: mvn install:install-file -Dfile=./soft-iot-write-csv-1.0-SNAPSHOT.jar -DgroupId=br.uefs.larsid.iot.soft -DartifactId=soft-iot-write-csv -Dversion=1.0-SNAPSHOT -Dpackaging=jar
- name: Building the bundle
run: mvn clean install
- name: Automatic Releases
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.BUILD_BUNDLE_TOKEN }}"
prerelease: false
files: |
target/*.jar