Merge pull request #15 from devcordde/renovate/actions-checkout-4.x #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gradle Upload | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
upload: | |
name: Upload to server | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: gradle/wrapper-validation-action@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 21 | |
- name: Build with Gradle | |
run: ./gradlew --build-cache test build | |
- name: Publish | |
run: ./gradlew uploadJar | |
env: | |
UPLOAD_URL: ${{ secrets.UPLOAD_URL }} |