25 lines
666 B
YAML
25 lines
666 B
YAML
# Automatically build the project and run any configured tests for every push
|
|
# and submitted pull request. This can help catch issues that only occur on
|
|
# certain Java versions, and provides a first line of defence against bad commits.
|
|
|
|
name: Build
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
- name: Build with Gradle
|
|
run: ./gradlew publish
|