File tree 7 files changed +77
-29
lines changed 7 files changed +77
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : Release a Module Version
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ create-a-new-release :
10
+ strategy :
11
+ matrix :
12
+ include :
13
+ - os : ubuntu-latest
14
+ artifact_name : hello-world
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout project sources
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Compile the modules
21
+ id : compile_the_modules
22
+ run : |
23
+ cd modules
24
+ for d in */ ; do
25
+ version=$(jq -r '.version' $d/index.json)
26
+ filename= ${d}-${version}.module
27
+ zip -z $filename
28
+ echo $filename >> release_notes.txt
29
+ done
30
+ - name : Create Release
31
+ id : create_release
32
+ uses : actions/create-release@v1
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ with :
36
+ tag_name : ${{ github.ref }}
37
+ release_name : Release ${{ github.ref }}
38
+ body_path : modules/release_notes.txt
39
+ draft : false
40
+ prerelease : false
41
+ - name : upload artifacts
42
+ id : upload_artifacts
43
+ env :
44
+ GITHUB_TOKEN : ${{ secerts.GITHUB_TOKEN }}
45
+ run : |
46
+ for module in modules/*.module; do
47
+ gh release upload ${{ github.ref }}
48
+ done
49
+
Original file line number Diff line number Diff line change
1
+ ** /* .module
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " hello-world-module" ,
3
+ "description" : " This is a hello world module to demonstrate" ,
4
+ "maintainers" : [
5
+ {
6
+ "name" : " hello-world-maintainer"
7
+ }
8
+ ],
9
+ "version" : " 1.0.0" ,
10
+ "requiredSystemVersions" : [
11
+ " hivemq-enterprise/4.34.0"
12
+ ],
13
+ "resources" : {
14
+ "files" : [
15
+ {
16
+ "type" : " application/vnd+hivemq.data-policy+json" ,
17
+ "path" : " data-policy.json.vm" ,
18
+ "name" : " Data Policy to handle non-JSON messages"
19
+ },
20
+ {
21
+ "type" : " application/vnd+hivemq.schema+json" ,
22
+ "path" : " schema.json" ,
23
+ "name" : " Simple JSON schema"
24
+ }
25
+ ]
26
+ }
27
+ }
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments