Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a7e5f66902 | ||
![]() |
4837f9fdb4 |
36
.gitea/workflows/main.yml
Normal file
36
.gitea/workflows/main.yml
Normal file
@ -0,0 +1,36 @@
|
||||
name: Gitea Action Maven Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['devel']
|
||||
|
||||
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, Test and Package with Maven
|
||||
run: mvn -B verify --file pom.xml -e
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: russianmorphology-artifact
|
||||
path: |
|
||||
target/*.jar
|
||||
- name: Deploy to Gitea Packages
|
||||
run: mvn deploy
|
21
pom.xml
21
pom.xml
@ -19,15 +19,11 @@
|
||||
<lucene.version>9.3.0</lucene.version>
|
||||
<morphology.version>1.5</morphology.version>
|
||||
<junit.version>4.13</junit.version>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>bintray</id>
|
||||
<url>https://api.bintray.com/maven/akuznetsov/russianmorphology/morphology</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache License, Version 2.0</name>
|
||||
@ -180,4 +176,15 @@
|
||||
<module>english</module>
|
||||
<module>solr-morphology-analysis</module>
|
||||
</modules>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>gitea</id>
|
||||
<url>https://git.kuksa.dev/api/packages/edkuksa/maven</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>gitea</id>
|
||||
<url>https://git.kuksa.dev/api/packages/edkuksa/maven</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user