4 Commits

Author SHA1 Message Date
2e02f92552 add authentification section in pipeline
All checks were successful
Gitea Action Maven Build / build (push) Successful in 2m49s
2025-05-11 13:47:38 +07:00
1dcfe3999b change artifacts path in pipeline
Some checks failed
Gitea Action Maven Build / build (push) Failing after 51s
2025-05-10 19:58:19 +07:00
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
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 69 additions and 7 deletions

55
.gitea/workflows/main.yml Normal file
View File

@ -0,0 +1,55 @@
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: |
dictionary-reader/target/dictionary-reader-1.5.jar
english/target/english-1.5.jar
russian/target/russian-1.5.jar
morph/target/morph-1.5.jar
solr-morphology-analysis/target/morphology-1.5.jar
- name: Create Maven settings.xml
run: |
cat <<EOF > ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>gitea</id>
<username>${{ vars.OWNER }}</username>
<password>${{ secrets.ACCESS_TOKEN }}</password>
</server>
</servers>
</settings>
EOF
- name: Deploy to Gitea Packages
run: mvn deploy

21
pom.xml
View File

@ -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>