Skip to content

Commit

Permalink
use released parent
Browse files Browse the repository at this point in the history
add release action
  • Loading branch information
jschwarz-eitco-de committed May 10, 2024
1 parent 0bb436b commit cc8a804
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 16 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up jdk
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: github
gpg-private-key: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY }}
- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: maven release
run: export GPG_TTY=$(tty) && mvn --batch-mode -e --global-settings deployment/global-settings.xml --batch-mode release:prepare release:perform
env:
GPG_KEY_NAME: ${{ secrets.ARTIFACT_SIGNING_GPG_KEY_NAME }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY_PASSWORD }}
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions deployment/global-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_JIRA_USERNAME}</username>
<password>${env.OSSRH_JIRA_PASSWORD}</password>
</server>
</servers>

</settings>
17 changes: 1 addition & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.eitco</groupId>
<artifactId>eitco-oss-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
</parent>


Expand Down Expand Up @@ -41,21 +41,6 @@
</dependency>
</dependencies>

<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/eitco/eitco-oss-parent</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>

<build>
<plugins>
<plugin>
Expand Down

0 comments on commit cc8a804

Please sign in to comment.