Skip to content

Commit

Permalink
Merge pull request #83 from henrypinkard/main
Browse files Browse the repository at this point in the history
debugging automated releases
  • Loading branch information
henrypinkard authored Jul 12, 2023
2 parents b78623a + d0a7d22 commit 4868226
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release_jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
java-version: 8
distribution: 'zulu'

- name: Extract version
id: pom
run: |
echo "POM_VERSION=$(mvn -B -Dexec.executable='echo' -Dexec.args='${project.version}' exec:exec -q)" >> $GITHUB_ENV
- name: Compile Jar with maven
run: mvn package


- name: Find artifact
id: find_artifact
run: |
Expand All @@ -39,22 +42,23 @@ jobs:
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
echo "Artifact: $ARTIFACT_NAME"
- name: Get the version
id: get_version
- name: Create Git Tag
id: create_tag
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo ::set-output name=VERSION::$VERSION
echo "Version: $VERSION"
TAG_NAME="v${POM_VERSION}"
git tag $TAG_NAME
git push origin $TAG_NAME
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
tag_name: v${{ env.POM_VERSION }}
release_name: Release v${{ env.POM_VERSION }}
body: Auto-generated release from ${{ github.ref }}
draft: false
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.micro-manager.lightsheetmanager</groupId>
<artifactId>LightSheetManager</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<packaging>jar</packaging>
<name>LightSheetManager plugin</name>
<description>Java-based Micro-Manager plugin for controlling light sheet microscopes</description>
Expand Down

0 comments on commit 4868226

Please sign in to comment.