forked from Mirror/ollama4j
Add gitea release workflow
All checks were successful
Build and Publish / build (push) Successful in 53s
All checks were successful
Build and Publish / build (push) Successful in 53s
This commit is contained in:
parent
c520604f4b
commit
f2c7b37fbb
32
.gitea/workflows/publish.yaml
Normal file
32
.gitea/workflows/publish.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: Build and Publish
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set Up Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
#cache: 'maven'
|
||||
#server-id: 'gitea'
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v5
|
||||
with:
|
||||
maven-version: 3.8.2
|
||||
|
||||
- run: cat /root/.m2/toolchains.xml
|
||||
- run: cat /root/.m2/settings.xml
|
||||
|
||||
- name: Build
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
# - deploy: Publish
|
||||
#run: mvn deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user