Skip to content

Commit 34c9853

Browse files
authored
Merge pull request #39 from /issues/20
Deploy artifacts to bucket
2 parents fd48de0 + e7e5d20 commit 34c9853

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/snapshot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Snapshot Artifacts
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
snapshot:
8+
runs-on: ${{ matrix.os }}
9+
permissions:
10+
contents: read
11+
packages: write
12+
strategy:
13+
matrix:
14+
os: [ ubuntu-latest ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: 21
22+
cache: maven
23+
- name: Build with Maven
24+
run: mvn --batch-mode deploy -DskipTests -DskipITs
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
27+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
</repositories>
5454

5555
<build>
56+
<extensions>
57+
<extension>
58+
<groupId>org.springframework.build</groupId>
59+
<artifactId>aws-maven</artifactId>
60+
<version>5.0.0.RELEASE</version>
61+
</extension>
62+
</extensions>
5663
<pluginManagement>
5764
<plugins>
5865
<plugin>
@@ -297,4 +304,15 @@
297304
</dependency>
298305
</dependencies>
299306
</dependencyManagement>
307+
308+
<distributionManagement>
309+
<repository>
310+
<id>repo-maven-shift7-release</id>
311+
<url>s3://repo-maven-shift7/releases/</url>
312+
</repository>
313+
<snapshotRepository>
314+
<id>repo-maven-shift7-snapshot</id>
315+
<url>s3://repo-maven-shift7/snapshots/</url>
316+
</snapshotRepository>
317+
</distributionManagement>
300318
</project>

0 commit comments

Comments
 (0)