-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GroG
committed
Jan 8, 2025
1 parent
4bf209c
commit 3d9bd40
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
version: ${{ steps.version.outputs.version }} # Make version an output | ||
version: ${{ steps.version.outputs.version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -29,7 +29,7 @@ jobs: | |
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q | ||
|
||
- name: Get next version | ||
id: version # ID needed to reference in outputs | ||
id: version | ||
uses: reecetech/[email protected] | ||
with: | ||
scheme: semver | ||
|
@@ -91,13 +91,16 @@ jobs: | |
echo "" >> changelog.md | ||
git log --pretty=format:"- %s" -n 10 >> changelog.md | ||
echo "" >> changelog.md | ||
cat changelog.md | ||
- name: Read Change Log into Variable | ||
id: read_changelog | ||
run: echo "CHANGELOG<<EOF" >> $GITHUB_ENV && cat changelog.md >> $GITHUB_ENV && echo "EOF" >> $GITHUB_ENV | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_name: "v${{ needs.build.outputs.version }}" # Ensure correct reference | ||
tag_name: "v${{ needs.build.outputs.version }}" | ||
name: "MyRobotLab Nixie v${{ needs.build.outputs.version }}" | ||
body: | | ||
## MyRobotLab Nixie Release | ||
|
@@ -114,7 +117,7 @@ jobs: | |
You will need **Java 11 or newer**. If you are only running MyRobotLab, you need the JRE (Java Runtime Environment). | ||
If you are building from source, you will need the JDK (Java Development Kit). Oracle or OpenJDK will work. | ||
$(cat changelog.md) | ||
${{ env.CHANGELOG }} | ||
files: target/myrobotlab-${{ needs.build.outputs.version }}.zip | ||
draft: false | ||
|