language: java jdk: - openjdk16 jobs: include: - stage: check script: ./gradlew check - stage: publish script: ./gradlew build publish stages: - name: check if: type IN (pull_request) - name: publish if: NOT type IN (pull_request)