Skip to content

Commit

Permalink
added tag to build
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Jan 5, 2025
1 parent e2a5417 commit b66c02a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This file must be in the .github/workflows folder for GitHub Actions to work
name: Java CI

on:
Expand All @@ -23,15 +22,15 @@ jobs:
- name: Install Missing Dependencies
run: sudo apt-get install -y libv4l-0 ffmpeg

- name: Dependency Test # installs all dependencies
- name: Dependency Test
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q

- name: Build with Maven # currently cannot test OpenCV
- name: Build with Maven
run: mvn clean verify -q -DskipTests

- name: Get next version
uses: reecetech/version-increment@2023.9.3
id: version
uses: reecetech/version-increment@2023.9.3
with:
scheme: semver
increment: patch
Expand Down Expand Up @@ -66,6 +65,13 @@ jobs:
name: myrobotlab
path: target/myrobotlab-${{ steps.version.outputs.version }}.zip

- name: Create and Push Git Tag
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@github.com"
git tag -a "${{ steps.version.outputs.version }}" -m "Release ${{ steps.version.outputs.version }}"
git push origin "${{ steps.version.outputs.version }}"
release:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit b66c02a

Please sign in to comment.