Merge pull request #13 from devcordde/renovate/io.papermc.paperweight… #10
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 }} |