Skip to content

Commit

Permalink
Improve mvn cmd for setting version for example workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored Jan 14, 2024
2 parents 28b0bcd + 4a6c0fe commit 62b804a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# You could set the version in your repository to something like `0.0.0-SNAPSHOT` and
# it will always be overwritten to the correct version here when a release is created.
- name: Set maven project ver
run: 'mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}'
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false

# This step compiles your Maven project to a `.jar`
- name: Build and package Maven project
Expand Down Expand Up @@ -92,4 +92,4 @@ jobs:
| `changelog` | no | The changelog for this version (markdown). Defaults to GitHub release notes. |
| `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) |
| `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) |
| `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) | |
| `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 comments on commit 62b804a

Please sign in to comment.