34 lines
889 B
YAML
34 lines
889 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
|
|
url: https://gitea.simcop2387.info
|
|
repo: simcop2387/keycloak
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
|
# tag: v1.0.0
|
|
# release-dir: dist/release
|
|
# release-notes: "MY RELEASE NOTES"
|