Publish Maven packages from CI #51
2 changed files with 40 additions and 2 deletions
22
.forgejo/workflows/publish.yml
Normal file
22
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
image:
|
||||||
|
name: Publish Maven packages
|
||||||
|
runs-on: docker
|
||||||
|
container: git.frostfs.info/truecloudlab/env:openjdk-11-maven-3.8.6
|
||||||
|
steps:
|
||||||
|
- name: Clone git repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Publish release packages
|
||||||
|
run: mvn clean --batch-mode --update-snapshots deploy
|
||||||
|
if: >-
|
||||||
|
startsWith(github.ref, 'refs/tags/v') &&
|
||||||
|
(github.event_name == 'workflow_dispatch' || github.event_name == 'push')
|
||||||
|
env:
|
||||||
|
MAVEN_REGISTRY: TrueCloudLab
|
||||||
|
MAVEN_REGISTRY_USER: ${{secrets.MAVEN_REGISTRY_USER}}
|
||||||
|
MAVEN_REGISTRY_PASSWORD: ${{secrets.MAVEN_REGISTRY_PASSWORD}}
|
20
pom.xml
20
pom.xml
|
@ -17,7 +17,7 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>0.9.0</revision>
|
<revision>0.10.0</revision>
|
||||||
|
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
|
@ -160,4 +160,20 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>TrueCloudLab</id>
|
||||||
|
<url>https://git.frostfs.info/api/packages/TrueCloudLab/maven</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>TrueCloudLab</id>
|
||||||
|
<url>https://git.frostfs.info/api/packages/TrueCloudLab/maven</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>TrueCloudLab</id>
|
||||||
|
<url>https://git.frostfs.info/api/packages/TrueCloudLab/maven</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue