Skip to content

Commit

Permalink
fix: snapshot upload (#60)
Browse files Browse the repository at this point in the history
* fix: snapshot upload
  • Loading branch information
maxday committed Jun 28, 2024
1 parent 379fddd commit 3b7dd96
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
branches: [ main ]
paths:
- 'aws-lambda-java-runtime-interface-client/**'
workflow_dispatch:

jobs:

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ dependency-reduced-pom.xml
.project

# OSX
.DS_Store
.DS_Store

# snapshot process
aws-lambda-java-runtime-interface-client/pom.xml.versionsBackup
12 changes: 12 additions & 0 deletions aws-lambda-java-runtime-interface-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jacoco.maven.plugin.version>0.8.8</jacoco.maven.plugin.version>
<maven-install-plugin.version>2.4</maven-install-plugin.version>
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<junit-jupiter.version>5.9.2</junit-jupiter.version>
<!--
The test/integration/codebuild/buildspec.*.yml files will set -DmultiArch=false
Expand Down Expand Up @@ -95,6 +97,16 @@
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>${maven-install-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M9</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ else
echo "Already -SNAPSHOT version"
fi

# get the updated project version
snapshotProjectVersion=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "Updated project version is ${snapshotProjectVersion}"

CLASSIFIERS_ARRAY=("linux-x86_64" "linux_musl-x86_64" "linux-aarch_64" "linux_musl-aarch_64")

for str in "${CLASSIFIERS_ARRAY[@]}"; do
Expand All @@ -36,7 +40,7 @@ mvn -B -X -P ci-repo \
-DgroupId=com.amazonaws \
-DartifactId=aws-lambda-java-runtime-interface-client \
-Dpackaging=jar \
-Dversion=$projectVersion \
-Dversion=$snapshotProjectVersion \
-Dfile=./target/aws-lambda-java-runtime-interface-client-$projectVersion.jar \
-Dfiles=$FILES \
-Dclassifiers=$CLASSIFIERS \
Expand Down

0 comments on commit 3b7dd96

Please sign in to comment.