Skip to content

Commit 62b804a

Browse files
authored
Improve mvn cmd for setting version for example workflow (#2)
2 parents 28b0bcd + 4a6c0fe commit 62b804a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
# You could set the version in your repository to something like `0.0.0-SNAPSHOT` and
5757
# it will always be overwritten to the correct version here when a release is created.
5858
- name: Set maven project ver
59-
run: 'mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}'
59+
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
6060

6161
# This step compiles your Maven project to a `.jar`
6262
- name: Build and package Maven project
@@ -92,4 +92,4 @@ jobs:
9292
| `changelog` | no | The changelog for this version (markdown). Defaults to GitHub release notes. |
9393
| `loaders` | yes | The mod loaders that this version supports (separated by commas or as JSON string array). See [createVersion](https://docs.modrinth.com/api-spec#tag/versions/operation/createVersion) |
9494
| `dependencies` | no | A list of specific versions of projects that this version depends on (as JSON array). See [createVersion](https://docs.modrinth.com/api-spec#tag/versions/operation/createVersion) |
95-
| `api-domain` | no | Modrinth API domain. For testing purposes you can set this to `staging-api.modrinth.com`. See [Modrinth Staging Server](https://staging.modrinth.com) | |
95+
| `api-domain` | no | Modrinth API domain. For testing purposes you can set this to `staging-api.modrinth.com`. See [Modrinth Staging Server](https://staging.modrinth.com) | |

0 commit comments

Comments
 (0)