Skip to content

Commit 3895076

Browse files
committed
try 2
1 parent 1c401be commit 3895076

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

12+
outputs:
13+
version: ${{ steps.version.outputs.version }} # Make version an output
14+
1215
steps:
1316
- uses: actions/checkout@v3
1417

@@ -25,11 +28,8 @@ jobs:
2528
- name: Dependency Test
2629
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
2730

28-
# - name: Build with Maven
29-
# run: mvn clean verify -q -DskipTests
30-
3131
- name: Get next version
32-
id: version
32+
id: version # ID needed to reference in outputs
3333
uses: reecetech/[email protected]
3434
with:
3535
scheme: semver
@@ -69,8 +69,8 @@ jobs:
6969
run: |
7070
git config --global user.name "GitHub Actions"
7171
git config --global user.email "[email protected]"
72-
git tag -a "${{ steps.version.outputs.version }}" -m "Release ${{ steps.version.outputs.version }}"
73-
git push origin "${{ steps.version.outputs.version }}"
72+
git tag -a "v${{ steps.version.outputs.version }}" -m "Release v${{ steps.version.outputs.version }}"
73+
git push origin "v${{ steps.version.outputs.version }}"
7474
7575
release:
7676
needs: build
@@ -89,8 +89,8 @@ jobs:
8989
uses: softprops/action-gh-release@v2
9090
with:
9191
token: ${{ secrets.GITHUB_TOKEN }}
92-
tag_name: ${{ needs.build.outputs.version }}
93-
name: "MyRobotLab Nixie ${{ needs.build.outputs.version }}"
92+
tag_name: "v${{ needs.build.outputs.version }}" # Ensure correct reference
93+
name: "MyRobotLab Nixie v${{ needs.build.outputs.version }}"
9494
body: |
9595
## MyRobotLab Nixie Release
9696
@@ -99,7 +99,7 @@ jobs:
9999
100100
* Project Website: [MyRobotLab.org](http://myrobotlab.org)
101101
* Project Discord: [Join here](https://discord.gg/AfScp5x8r5)
102-
* Download Built Application: [Nixie ${{ needs.build.outputs.version }}](https://myrobotlab-repo.s3.amazonaws.com/myrobotlab-${{ needs.build.outputs.version }}.zip)
102+
* Download Built Application: [Nixie v${{ needs.build.outputs.version }}](https://myrobotlab-repo.s3.amazonaws.com/myrobotlab-${{ needs.build.outputs.version }}.zip)
103103
* [JavaDocs](https://build.myrobotlab.org:8443/job/myrobotlab/job/develop/$build/artifact/target/site/apidocs/org/myrobotlab/service/package-summary.html)
104104
105105
## Base Requirements

0 commit comments

Comments
 (0)