1- # This file must be in the .github/workflows folder for GitHub Actions to work
21name : Java CI
32
43on :
@@ -23,15 +22,15 @@ jobs:
2322 - name : Install Missing Dependencies
2423 run : sudo apt-get install -y libv4l-0 ffmpeg
2524
26- - name : Dependency Test # installs all dependencies
25+ - name : Dependency Test
2726 run : mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
2827
29- - name : Build with Maven # currently cannot test OpenCV
28+ - name : Build with Maven
3029 run : mvn clean verify -q -DskipTests
3130
3231 - name : Get next version
33- uses : reecetech/version-increment@2023年9月3日
3432 id : version
33+ uses : reecetech/version-increment@2023年9月3日
3534 with :
3635 scheme : semver
3736 increment : patch
6665 name : myrobotlab
6766 path : target/myrobotlab-${{ steps.version.outputs.version }}.zip
6867
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+
6975 release :
7076 needs : build
7177 runs-on : ubuntu-latest
0 commit comments