Skip to content

Commit

Permalink
chore: add a github action to release the snapshot version of s3stream
Browse files Browse the repository at this point in the history
Signed-off-by: daniel-y <[email protected]>
  • Loading branch information
daniel-y committed Oct 8, 2023
1 parent d558e4e commit f4c0a46
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/s3stream-snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Snapshot of S3Stream
on:
push:
branches:
- 'main'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: echo "Will start a Maven Central upload with current version"
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 17
server-id: oss.sonatype.org
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish package
working-directory: s3stream
run: mvn --batch-mode clean deploy -P central-deploy -DskipTests=true
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,14 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>snapshot</id>
<distributionManagement>
<snapshotRepository>
<id>oss.sonatype.org</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</snapshotRepository>
<repository>
<id>oss.sonatype.org</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</repositories>
</distributionManagement>
</project>

0 comments on commit f4c0a46

Please sign in to comment.