name: Build with gradle run-name: Building for ${{ gitea.actor }} on: pull_request: push: branches: - 'main' jobs: Build-with-gradle: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v5 with: distribution: 'zulu' java-version: '22' cache: 'gradle' # cache-dependency-path: | # optional # sub-project/*.gradle* # sub-project/**/gradle-wrapper.properties - run: ./gradlew test --no-daemon - run: ./gradlew publishAllPublicationsToGiteaRepository -PgradleKey=${{ secrets.GRADLE_KEY }} --no-daemon