From 256d7e0a3bbf6d513927dd4a7001fa4cd18aa2e3 Mon Sep 17 00:00:00 2001 From: Francisco Solis Date: Sun, 6 Nov 2022 22:50:39 -0300 Subject: [PATCH 1/2] Run Tests On PR & Save file In Release --- .github/workflows/gradle-build.yml | 7 ++++++- .github/workflows/gradle-test.yml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 8420bb3..23676b7 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -36,13 +36,18 @@ jobs: run: chmod +x gradlew # Clean, Test, Publish and Build (in that order to save the artifact to the action) - name: Test, Deploy and Build with Gradle - run: ./gradlew clean test publish shadow dokkaHtml + run: ./gradlew clean test publish shadow dokkaHtml --no-daemon # Now we store the artifact in the action - name: Upload the artifact uses: actions/upload-artifact@v3 with: name: CommandsModule path: ./build/libs/CommandsModule-${{ env.VERSION }}.jar + # Here we upload the binary to the release + - name: Upload to release + uses: JasonEtco/upload-to-release@master + with: + args: ./build/libs/CommandsModule-${{ env.VERSION }}.jar application/java-archive # Now we deploy the documents to GitHub pages - name: Deploy Dokka uses: JamesIves/github-pages-deploy-action@v4.4.1 diff --git a/.github/workflows/gradle-test.yml b/.github/workflows/gradle-test.yml index f9e1e13..35c6a77 100644 --- a/.github/workflows/gradle-test.yml +++ b/.github/workflows/gradle-test.yml @@ -1,6 +1,6 @@ name: "Test" # Only execute this workflow when a PR is opened or when something is pushed to the master branch -on: [push, pull_request] +on: [pull_request] jobs: testBuilds: strategy: @@ -28,4 +28,4 @@ jobs: run: chmod +x gradlew # Test building without dokka - name: Build Jar with Java ${{ matrix.java-version }} - run: ./gradlew clean publish shadow -x dokkaHtml \ No newline at end of file + run: ./gradlew clean publish shadow -x dokkaHtml --no-daemon \ No newline at end of file From 5723b9344fe88b085c3ec700c04e68d0af407d2a Mon Sep 17 00:00:00 2001 From: Francisco Solis Date: Mon, 7 Nov 2022 00:02:29 -0300 Subject: [PATCH 2/2] JitPack Badges --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df87af7..543763e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ +[![](https://jitci.com/gh/TheProgramSrc/SimpleCore-CommandsModule/svg)](https://jitci.com/gh/TheProgramSrc/SimpleCore-CommandsModule) +[![](https://jitpack.io/v/TheProgramSrc/SimpleCore-CommandsModule.svg)](https://jitpack.io/#TheProgramSrc/SimpleCore-CommandsModule) + # SimpleCore-CommandsModule Command Builder module for SimpleCore API. # Documentation * [Wiki](https://github.com/TheProgramSrc/SimpleCore-CommandsModule/wiki) -* [JavaDocs](https://theprogramsrc.github.io/SimpleCore-CommandsModule/) +* [JavaDocs](https://docs.theprogramsrc.xyz/SimpleCore-CommandsModule/)