From 23bdb19ce4452d060070c54c9324316e8265a72e Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Sat, 2 Mar 2024 21:21:10 +0100 Subject: [PATCH] Added `loadUsers` and `unloadUsers` methods. Added automatic release system with Github actions. Fixed [UserYAMLParser](src/main/java/it/fulminazzo/simplyperms/users/UserYAMLParser) for correctly loading users. --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ build.gradle | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..58ccf1d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +# Name of the action +name: Automatic Release + +# Event to run on +on: + # Will run on every push in the "main" branch + push: + branches: + - main + +permissions: + contents: write + +# Jobs that will execute +jobs: + release: + name: Setup Environment, Build JAR and Release Project + runs-on: ubuntu-latest + steps: + - name: Automatic Release + uses: Fulminazzo/java-automatic-release@v1 + with: + java-version: 8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY_NAME: ${{ github.event.repository.name }} + # Message specified in the commit + COMMIT_MESSAGE: ${{ github.event.head_commit.message }} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7cd7445..6d9297d 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group = 'it.fulminazzo' -version = '1.0' +version = '1.1' repositories { mavenCentral()