Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

GitHub actions changes #21

Merged
merged 13 commits into from
Apr 30, 2020
Merged

GitHub actions changes #21

merged 13 commits into from
Apr 30, 2020

Conversation

Derongan
Copy link
Member

@Derongan Derongan commented Apr 20, 2020

Remove version # defined by gradle.properties. Instead, the publish CI will now automatically generate and tag the commit based on the last version tag. The type of increment is determined by a tag on the PR, one of major, minor, or patch.

If one of these labels is not present CI will fail and no release will be generated!

A few changes have been made outside of source control to this repo for these changes:

  1. New labels mentioned above have been added.

Remove version # defined by gradle.properties. Instead, the publish CI will now automatically generate and tag the commit based on the last version tag. The type of increment is determined by a tag on the PR, one of `major`, `minor`, or `patch`.

If one of these labels is not present CI _will fail_ and no release will be generated!

A few changes have been made outside of source control to this repo for these changes:

1. New labels mentioned above have been added.
2. Merges to master now requires the branch being merged into master to be completely up to date with master.
@Derongan Derongan added type:enhancement New feature or request and removed type:enhancement New feature or request labels Apr 20, 2020
@Derongan
Copy link
Member Author

#17

@Derongan Derongan added the patch backwards compatible bugfix label Apr 20, 2020
@Derongan Derongan requested a review from lizelive April 20, 2020 06:53
- master
paths-ignore:
- .gitignore
- README.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth ignoring **.md?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id prefer not to for now just in case. if it starts being annoying can change

uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build NMS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No cache? :(

I'd like it if we could figure out a better way of doing it than I have with Mobzy. I wonder if it'd be possible to get that working right in the NMS action itself. The only actual problem with the way I did it is it relies on NMS version being in gradle.properties and will update cache any time properties are updated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seeing as this change is focused on releasing, no

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, but I'd like to look into that later. An issue would be nice, but what repo would that belong to? I think best to put it under the nms action itself, since we should probably add some info the the README on caching anyways.

build.gradle Show resolved Hide resolved
.github/workflows/publish.yml Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
.github/workflows/publish.yml Show resolved Hide resolved
.github/workflows/publish.yml Outdated Show resolved Hide resolved
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/libs/*.jar

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not just the shadow jar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. My thinking was there is no harm in releasing both. The non shaded jar may be useful for explicitly adding a dependency when developing outside of gradle.

@Derongan Derongan merged commit cec22b6 into master Apr 30, 2020
@Derongan Derongan deleted the github-actions-changes branch April 30, 2020 05:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
patch backwards compatible bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants