File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ jobs:
22
22
23
23
- name : Build native image
24
24
run : |
25
- ./create-image.sh ${{ env.REPO_NAME }}-${{ matrix.os }}
25
+ ./create-image.sh ${{ matrix.os }}
26
26
27
27
- name : Commit & Push changes
28
28
uses : actions-js/push@master
29
29
with :
30
30
rebase : true
31
- message : ' chore: binary image for ${{matrix.os}} - ${{date}}'
31
+ tags : true
32
+ message : ' chore: binary image for ${{matrix.os}}'
32
33
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -92,4 +92,6 @@ fabric.properties
92
92
.idea /httpRequests
93
93
94
94
# Android studio 3.1+ serialized cache file
95
- .idea /caches /build_file_checksums.ser
95
+ .idea /caches /build_file_checksums.ser
96
+
97
+ bin /local
Original file line number Diff line number Diff line change 17
17
IMAGE_NAME=" json-schema-compiler"
18
18
WORK_FOLDER=" ./target"
19
19
RELEASES_FOLDER=" ./bin"
20
+ TODAY=$( date +" %Y-%m-%d" )
20
21
21
22
# see: https://graalvm.github.io/native-build-tools/latest/maven-plugin-quickstart.html#_build_a_native_executable_by_detecting_resources_with_the_agent
22
23
echo " Running ./mvnw clean package"
@@ -35,5 +36,11 @@ if [[ $# -eq 0 ]] ; then
35
36
exit 1
36
37
fi
37
38
38
- echo " Moving $WORK_FOLDER /$IMAGE_NAME "
39
- mv -f " $WORK_FOLDER /$IMAGE_NAME " " $RELEASES_FOLDER /$1 "
39
+ echo " Moving $WORK_FOLDER /$IMAGE_NAME to $RELEASES_FOLDER /$1 /$IMAGE_NAME "
40
+ mkdir -p " $RELEASES_FOLDER /$1 "
41
+ mv -f " $WORK_FOLDER /$IMAGE_NAME " " $RELEASES_FOLDER /$1 /$IMAGE_NAME "
42
+
43
+ echo " Creating tag '$1 -$TODAY '"
44
+ git tag -a " $1 -$TODAY " -m " Native image for $1 , generated on $TODAY "
45
+ echo " Moving tag $1 -latest"
46
+ git tag -af " $1 -latest" -m " Latest version of the native image for $1 "
You can’t perform that action at this time.
0 commit comments