Push sorces to aws in maven-publish
This commit is contained in:
parent
b25cde5c2d
commit
88bbe0ff74
24
.github/workflows/maven-publish.yml
vendored
24
.github/workflows/maven-publish.yml
vendored
@ -93,27 +93,11 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
CODEARTIFACT_AUTH_TOKEN: ${{ secrets.AWS_CA_TOKEN }}
|
||||
|
||||
- name: Add maven-source-plugin to POM
|
||||
- name: Push sources to AWS
|
||||
run: |
|
||||
if ! grep -q "maven-source-plugin" pom.xml; then
|
||||
echo "maven-source-plugin not found in pom.xml, adding it..."
|
||||
sed -i '/<plugins>/a \
|
||||
<plugin>\
|
||||
<groupId>org.apache.maven.plugins</groupId>\
|
||||
<artifactId>maven-source-plugin</artifactId>\
|
||||
<version>3.3.1</version>\
|
||||
<executions>\
|
||||
<execution>\
|
||||
<id>attach-sources</id>\
|
||||
<goals>\
|
||||
<goal>jar-no-fork</goal>\
|
||||
</goals>\
|
||||
</execution>\
|
||||
</executions>\
|
||||
</plugin>' pom.xml
|
||||
else
|
||||
echo "maven-source-plugin already exists in pom.xml"
|
||||
fi
|
||||
mvn source:jar deploy -DskipTests=true -DrepositoryId=pravila--pravila-maven
|
||||
env:
|
||||
CODEARTIFACT_AUTH_TOKEN: ${{ secrets.AWS_CA_TOKEN }}
|
||||
|
||||
- name: Upload snapshot to nexus
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user