Skip to content

Commit a4c1804

Browse files
committed
remove version from release artifact but include in manifest
1 parent 7e3dd62 commit a4c1804

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/flyway-lambda-cicd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ jobs:
4343
with:
4444
upload_url: ${{ steps.create_release.outputs.upload_url }}
4545
asset_path: ./target/flyway-lambda-1.${{ github.run_number }}-jar-with-dependencies.jar
46-
asset_name: flyway-lambda-1.${{ github.run_number }}-jar-with-dependencies.jar
46+
asset_name: flyway-lambda-jar-with-dependencies.jar
4747
asset_content_type: application/jar
48-
#- run: git tag -a v1.$GITHUB_RUN_NUMBER -m "new release 1.$GITHUB_RUN_NUMBER"
4948
- run: mvn versions:set -D"nextSnapshot=true"
5049
- run: git commit -am "New snapshot version [skip ci]"
5150
- run: git push --follow-tags

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@
9595
<manifest>
9696
<mainClass>com.lydtechconsulting.flywaylambda.FlywayHandler</mainClass>
9797
</manifest>
98+
<manifestSections>
99+
<manifestSection>
100+
<name>${project.name}</name>
101+
<manifestEntries>
102+
<groupId>${project.groupId}</groupId>
103+
<artifactId>${project.artifactId}</artifactId>
104+
<version>${project.version}</version>
105+
</manifestEntries>
106+
</manifestSection>
107+
</manifestSections>
98108
</archive>
99109
<descriptorRefs>
100110
<descriptorRef>jar-with-dependencies</descriptorRef>

0 commit comments

Comments
 (0)