Skip to content

Commit

Permalink
generate pom
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Nov 3, 2024
1 parent 50c8cf0 commit 7453e0f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,32 @@ jobs:
NEW_ZIP_NAME="target/inmoov2-${{ env.artifact-version }}.zip"
mv "$ZIP_FILE" "$NEW_ZIP_NAME"
- name: Generate and upload POM file
run: |
cat > target/pom-${{ env.artifact-version }}.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.inmoov</groupId>
<artifactId>inmoov2</artifactId>
<version>${{ env.artifact-version }}</version>
<packaging>zip</packaging>
<description>POM was created from install:install-file</description>
</project>
EOF
S3_POM_URI="s3://myrobotlab-repo/artifactory/myrobotlab/fr/inmoov/inmoov2/${{ env.artifact-version }}/pom-${{ env.artifact-version }}.xml"
aws s3 cp "target/pom-${{ env.artifact-version }}.xml" "$S3_POM_URI"
- name: Upload to S3.
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
# s3://myrobotlab-repo/artifactory/myrobotlab/fr/inmoov/inmoov2/2.0.1897/inmoov2-2.0.1897.zip
run: |
S3_URI="s3://myrobotlab-repo/inmoov2-${{ env.artifact-version }}.zip"
S3_URI="s3://myrobotlab-repo/artifactory/myrobotlab/fr/inmoov/inmoov2/${{ env.artifact-version }}/inmoov2-${{ env.artifact-version }}.zip"
aws s3 cp "target/inmoov2-${{ env.artifact-version }}.zip" "$S3_URI"
- name: Verify artifact upload
Expand Down

0 comments on commit 7453e0f

Please sign in to comment.