File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ jobs:
2525 java-version : 8
2626 distribution : ' zulu'
2727
28+ - name : Extract version
29+ id : pom
30+ run : |
31+ echo "POM_VERSION=$(mvn -B -Dexec.executable='echo' -Dexec.args='${project.version}' exec:exec -q)" >> $GITHUB_ENV
2832
2933 - name : Compile Jar with maven
3034 run : mvn package
3135
32-
3336 - name : Find artifact
3437 id : find_artifact
3538 run : |
@@ -39,22 +42,23 @@ jobs:
3942 echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
4043 echo "Artifact: $ARTIFACT_NAME"
4144
42-
43- - name : Get the version
44- id : get_version
45+ - name : Create Git Tag
46+ id : create_tag
4547 run : |
46- VERSION=${GITHUB_REF#refs/tags/}
47- echo ::set-output name=VERSION::$VERSION
48- echo "Version: $VERSION"
48+ TAG_NAME="v${POM_VERSION}"
49+ git tag $TAG_NAME
50+ git push origin $TAG_NAME
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4953
5054 - name : Create Release
5155 id : create_release
5256 uses : actions/create-release@v1
5357 env :
5458 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
5559 with :
56- tag_name : ${{ steps.get_version.outputs.VERSION }}
57- release_name : Release ${{ steps.get_version.outputs.VERSION }}
60+ tag_name : v ${{ env.POM_VERSION }}
61+ release_name : Release v ${{ env.POM_VERSION }}
5862 body : Auto-generated release from ${{ github.ref }}
5963 draft : false
6064 prerelease : false
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >org.micro-manager.lightsheetmanager</groupId >
44 <artifactId >LightSheetManager</artifactId >
5- <version >0.1.8 </version >
5+ <version >0.1.9 </version >
66 <packaging >jar</packaging >
77 <name >LightSheetManager plugin</name >
88 <description >Java-based Micro-Manager plugin for controlling light sheet microscopes</description >
You can’t perform that action at this time.
0 commit comments