Eduard Kuksa 7bd674f1b1
Some checks failed
Gitea Action Maven build / build (push) Has been cancelled
add upload artifact to action
2025-01-26 18:37:13 +07:00

30 lines
668 B
YAML

name: Gitea Action Maven build
on:
push:
branches: ['master']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'oracle'
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: target
path: target