[#49] ci: Publish SDK packages to our Maven registry
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
8b44db3714
commit
c2d70c4f3e
1 changed files with 22 additions and 0 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}}
|
Loading…
Add table
Reference in a new issue