Compare commits

..

2 Commits

Author SHA1 Message Date
Eduard Kuksa
a7e5f66902 fix distributionManagement in pom.xml
Some checks failed
Gitea Action Maven Build / build (push) Failing after 3m2s
2025-05-09 11:19:35 +07:00
Eduard Kuksa
4837f9fdb4 create initial pipeline
Some checks failed
Gitea Action Maven Build / build (push) Failing after 4m44s
2025-05-08 19:46:50 +07:00
2 changed files with 50 additions and 7 deletions

36
.gitea/workflows/main.yml Normal file
View 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
View File

@ -19,15 +19,11 @@
<lucene.version>9.3.0</lucene.version> <lucene.version>9.3.0</lucene.version>
<morphology.version>1.5</morphology.version> <morphology.version>1.5</morphology.version>
<junit.version>4.13</junit.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> </properties>
<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/akuznetsov/russianmorphology/morphology</url>
</repository>
</distributionManagement>
<licenses> <licenses>
<license> <license>
<name>Apache License, Version 2.0</name> <name>Apache License, Version 2.0</name>
@ -180,4 +176,15 @@
<module>english</module> <module>english</module>
<module>solr-morphology-analysis</module> <module>solr-morphology-analysis</module>
</modules> </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> </project>