23 lines
503 B
YAML
23 lines
503 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- name: checkout repository
|
|
uses: https://gitea.com/actions/checkout@v2
|
|
- name: set up java
|
|
uses: https://gitea.com/actions/setup-java@v2
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: find maven
|
|
run: ls -la /bin /usr/bin /opt
|
|
- name: build with maven
|
|
run: mvn --batch-mode --file pom.xml package
|