Skip to content

Throw error when url is not set #2

Throw error when url is not set

Throw error when url is not set #2

Workflow file for this run

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 }}