Setup Maven publish workflow
This commit is contained in:
parent
eca1d69ed2
commit
227a61c794
37
.gitea/workflows/maven-publish.yml
Normal file
37
.gitea/workflows/maven-publish.yml
Normal file
@ -0,0 +1,37 @@
|
||||
name: Maven Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish to Maven
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [ubuntu-latest]
|
||||
git-version: ["2.41.0 "]
|
||||
runs-on: ${{ matrix.arch }}
|
||||
|
||||
# Steps
|
||||
steps:
|
||||
# Checkout the repo
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v2
|
||||
|
||||
# Set up JDK 8
|
||||
- name: Set up JDK
|
||||
uses: https://github.com/actions/setup-java@v3.12.0
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 8
|
||||
|
||||
# Setup Maven
|
||||
- name: Set up Maven
|
||||
uses: https://github.com/stCarolas/setup-maven@v4.5
|
||||
with:
|
||||
maven-version: 3.9.4
|
||||
|
||||
# Publish to Maven
|
||||
- name: Publish to Maven
|
||||
run: mvn deploy -B -Dstyle.color=always --update-snapshots
|
Loading…
x
Reference in New Issue
Block a user