name: Gradle Build on: push: branches: - '*' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up JDK 16 uses: actions/setup-java@v1 with: java-version: 16 server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Build with Gradle run: ./gradlew build - uses: actions/upload-artifact@v2 with: name: Artifacts path: ./build/libs/