Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrohe committed Mar 26, 2024
1 parent bc25540 commit b9da0d4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish packages to GitHub Packages
on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
server-id: 'github'
cache: 'maven'
- name: Publish packages
run: ./mvnw -U -B release:prepare release:perform
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 12 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@
</dependencyManagement>

<distributionManagement>
<downloadUrl>https://github.com/zalando/zalando-cloud-aws</downloadUrl>
<downloadUrl>https://github.com/zalando/spring-cloud-config-aws-kms</downloadUrl>
<repository>
<id>github</id>
<name> GitHub Packages</name>
<url>https://maven.pkg.github.com/zalando/spring-cloud-config-aws-kms</url>
</repository>
<!--
<repository>
<id>ossrh</id>
<name>Nexus Release Repository</name>
Expand All @@ -69,16 +75,17 @@
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
-->
<site>
<id>zalando-cloud-aws-docs</id>
<url>https://github.com/zalando/zalando-cloud-aws</url>
<url>https://github.com/zalando/spring-cloud-config-aws-kms</url>
</site>
</distributionManagement>

<scm>
<connection>scm:git:git://github.com/zalando/zalando-cloud-aws.git</connection>
<developerConnection>scm:git:ssh://git@github.com/zalando/zalando-cloud-aws.git</developerConnection>
<url>https://github.com/zalando/zalando-cloud-aws</url>
<connection>scm:git:git://github.com/zalando/spring-cloud-config-aws-kms.git</connection>
<developerConnection>scm:git:ssh://git@github.com/zalando/spring-cloud-config-aws-kms.git</developerConnection>
<url>https://github.com/zalando/spring-cloud-config-aws-kms</url>
</scm>

<developers>
Expand Down Expand Up @@ -106,17 +113,4 @@
</license>
</licenses>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
<arguments>-Pwith-gpg</arguments>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit b9da0d4

Please sign in to comment.