fix java deploy [2]

This commit is contained in:
vitaxa 2024-06-13 17:41:25 +03:00
parent ffc5be0dab
commit adad5026cb
3 changed files with 24 additions and 47 deletions

View File

@ -1,21 +0,0 @@
name: 'Frontend: PR'
on:
pull_request:
branches: ['*']
jobs:
configured:
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
check:
name: Check
runs-on: ubuntu-latest
needs: configured
if: needs.configured.outputs.exists == 'true'
steps:
- uses: actions/checkout@v3
- uses: valitydev/action-frontend/setup@v1
- uses: valitydev/action-setup-thrift@v1.0.1
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
- name: Codegen
run: npm run codegen

View File

@ -1,24 +0,0 @@
name: 'Frontend: Publish'
on:
push:
branches: ['master', 'main']
jobs:
configured:
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
publish:
name: Publish
runs-on: ubuntu-latest
needs: configured
if: needs.configured.outputs.exists == 'true'
steps:
- uses: actions/checkout@v3
- uses: valitydev/action-frontend/setup@v1
- uses: valitydev/action-setup-thrift@v1.0.1
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
- name: Build
run: npm run codegen
- uses: valitydev/action-frontend/publish@v1
with:
npm-token: ${{ secrets.NPM_TOKEN }}

26
pom.xml
View File

@ -10,7 +10,6 @@
<version>2.0.2</version>
</parent>
<groupId>com.empayre</groupId>
<artifactId>validator-personal-data-proto</artifactId>
<version>${revision}</version>
<packaging>jar</packaging>
@ -45,7 +44,7 @@
</scm>
<dependencies>
<!--empayre-->
<!--vality-->
<dependency>
<groupId>dev.vality.woody</groupId>
<artifactId>woody-thrift</artifactId>
@ -88,6 +87,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>dev.vality.pdvalidator</pattern>
<shadedPattern>dev.vality.pdvalidator.v${commit.number}</shadedPattern>
</relocation>
</relocations>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>v${commit.number}</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>