|
9 | 9 | build: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 |
|
| 12 | + outputs: |
| 13 | + version: ${{ steps.version.outputs.version }} # Make version an output |
| 14 | + |
12 | 15 | steps: |
13 | 16 | - uses: actions/checkout@v3 |
14 | 17 |
|
|
25 | 28 | - name: Dependency Test |
26 | 29 | run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q |
27 | 30 |
|
28 | | - # - name: Build with Maven |
29 | | - # run: mvn clean verify -q -DskipTests |
30 | | - |
31 | 31 | - name: Get next version |
32 | | - id: version |
| 32 | + id: version # ID needed to reference in outputs |
33 | 33 | |
34 | 34 | with: |
35 | 35 | scheme: semver |
|
69 | 69 | run: | |
70 | 70 | git config --global user.name "GitHub Actions" |
71 | 71 | 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 }}" |
74 | 74 |
|
75 | 75 | release: |
76 | 76 | needs: build |
|
89 | 89 | uses: softprops/action-gh-release@v2 |
90 | 90 | with: |
91 | 91 | 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 }}" |
94 | 94 | body: | |
95 | 95 | ## MyRobotLab Nixie Release |
96 | 96 |
|
|
99 | 99 |
|
100 | 100 | * Project Website: [MyRobotLab.org](http://myrobotlab.org) |
101 | 101 | * 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) |
103 | 103 | * [JavaDocs](https://build.myrobotlab.org:8443/job/myrobotlab/job/develop/$build/artifact/target/site/apidocs/org/myrobotlab/service/package-summary.html) |
104 | 104 |
|
105 | 105 | ## Base Requirements |
|
0 commit comments