From 8d10abc7ab3ab5cb5ed0cdb6c6992a3b0709867d Mon Sep 17 00:00:00 2001 From: SoraxDubbing <52173496+Sorax5@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:53:48 +0200 Subject: [PATCH 1/2] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f9af896 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Realistic physics plugin for minecraft From cdcdd8748a488cca456c1f0c01c9ba0809b602de Mon Sep 17 00:00:00 2001 From: SoraxDubbing <52173496+Sorax5@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:55:16 +0200 Subject: [PATCH 2/2] Create gradle-publish.yml --- .github/workflows/gradle-publish.yml | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/gradle-publish.yml diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 0000000..e195251 --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,43 @@ +name: Build DEV Jars +on: + pull_request: + paths-ignore: + - '.github/PULL_REQUEST_TEMPLATE.md' + - '.gitignore' + - 'LICENSE' + - 'CODE_OF_CONDUCT.md' + - 'CONTRIBUTING.md' + - 'README.md' + push: + paths-ignore: + - '.github/PULL_REQUEST_TEMPLATE.md' + - '.gitignore' + - 'LICENSE' + - 'CODE_OF_CONDUCT.md' + - 'CONTRIBUTING.md' + - 'README.md' +jobs: + build_dev_jars: + name: Build DEV jars + runs-on: ubuntu-latest + permissions: write-all + steps: + - uses: actions/checkout@v2.3.4 + - name: Setup JDK + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '21' + - name: Build with Gradle + run: | + chmod 777 gradlew + ./gradlew shadowJar + git_hash=$(git rev-parse --short "$GITHUB_SHA") + echo "git_hash=$git_hash" >> $GITHUB_ENV + echo "snapshotVersion=5.5-SNAPSHOT" >> $GITHUB_ENV + echo "artifactPath=$(pwd)/builds" >> $GITHUB_ENV + - name: Upload Plugin jar + uses: actions/upload-artifact@v3 + with: + name: SoraxPhysic-${{ env.git_hash }}.jar + path: ${{ env.artifactPath }}/SoraxPhysic-1.0-SNAPSHOT-all.jar