29 lines
682 B
YAML
29 lines
682 B
YAML
name: publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
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@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: Set up Maven
|
|
uses: https://github.com/stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.9
|
|
- name: build with maven
|
|
run: mvn --batch-mode --file pom.xml package
|
|
- name: upload to release
|
|
uses: actions/forgejo-release@v2.6.0
|
|
with:
|
|
direction: upload
|
|
release-dir: 'bundle/target/*.ear'
|