File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- # This file must be in the .github/workflows folder for GitHub Actions to work
2
1
name : Java CI
3
2
4
3
on :
@@ -23,15 +22,15 @@ jobs:
23
22
- name : Install Missing Dependencies
24
23
run : sudo apt-get install -y libv4l-0 ffmpeg
25
24
26
- - name : Dependency Test # installs all dependencies
25
+ - name : Dependency Test
27
26
run : mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
28
27
29
- - name : Build with Maven # currently cannot test OpenCV
28
+ - name : Build with Maven
30
29
run : mvn clean verify -q -DskipTests
31
30
32
31
- name : Get next version
33
- uses : reecetech/version-increment@2023.9.3
34
32
id : version
33
+ uses : reecetech/version-increment@2023.9.3
35
34
with :
36
35
scheme : semver
37
36
increment : patch
66
65
name : myrobotlab
67
66
path : target/myrobotlab-${{ steps.version.outputs.version }}.zip
68
67
68
+ - name : Create and Push Git Tag
69
+ run : |
70
+ git config --global user.name "GitHub Actions"
71
+ git config --global user.email "github-actions@github.com"
72
+ git tag -a "${{ steps.version.outputs.version }}" -m "Release ${{ steps.version.outputs.version }}"
73
+ git push origin "${{ steps.version.outputs.version }}"
74
+
69
75
release :
70
76
needs : build
71
77
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments