diff --git a/.github/workflows/gradle-ci.yml b/.github/workflows/gradle-ci.yml deleted file mode 100644 index ff03c9b..0000000 --- a/.github/workflows/gradle-ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Gradle CI - -on: [push, pull_request] - -jobs: - build: - name: Build - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Initialize JDK 16 - uses: actions/setup-java@v2 - with: - java-version: '16' - distribution: 'adopt' - - - name: Build with Gradle - uses: burrunan/gradle-cache-action@v1 - with: - arguments: build --stacktrace diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..696dc87 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,25 @@ +name: Gradle CI + +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Initialize JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + + - name: Build with Gradle + run: ./gradlew build + + - name: Upload build artifacts + uses: actions/upload-artifact@v2 + with: + name: ZtereoBOT + path: build/libs/ZtereoBOT-0.0.2-all.jar