Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b66c02a

Browse files
added tag to build
1 parent e2a5417 commit b66c02a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

‎.github/workflows/build.yml‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This file must be in the .github/workflows folder for GitHub Actions to work
21
name: Java CI
32

43
on:
@@ -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
@@ -66,6 +65,13 @@ jobs:
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /