-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eschleb
committed
Sep 23, 2024
0 parents
commit eca78b1
Showing
35 changed files
with
2,587 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Setup maven" | ||
description: "Configures maven settings" | ||
|
||
inputs: | ||
mgnl_nexus_user: | ||
description: “Username for magnolia nexus” | ||
required: true | ||
mgnl_nexus_pass: | ||
description: “Password for magnolia nexus” | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: s4u/maven-settings-action@v2 | ||
with: | ||
servers: | | ||
[{ | ||
"id": "magnolia.enterprise.group", | ||
"username": "${{ inputs.mgnl_nexus_user }}", | ||
"password": "${{ inputs.mgnl_nexus_pass }}" | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: release and deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout source code | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
# Setup Java environment | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Maven setup | ||
uses: ./.github/actions/mvn-setup | ||
with: | ||
mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}} | ||
mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} | ||
# Install xmllint | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install libxml2-utils | ||
# Set git user name and email | ||
- name: Set up Git | ||
run: | | ||
chmod +x ci/setup-git.sh | ||
ci/setup-git.sh | ||
# Release, set correct versions and create tag | ||
- name: Release (versioning/tag) | ||
run: | | ||
chmod +x ci/mvn-release.sh | ||
ci/mvn-release.sh | ||
deploy-release: | ||
|
||
needs: release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout source code | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'main' | ||
# Setup Java environment | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
server-id: central | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: Maven setup | ||
uses: ./.github/actions/mvn-setup | ||
with: | ||
mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}} | ||
mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} | ||
# Run maven verify | ||
- name: Maven verify | ||
run: mvn verify --batch-mode | ||
# Publish | ||
- name: Release Maven package (SNAPSHOT) | ||
run: mvn deploy -Pdeploy | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: verify | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
verify: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout source code | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# Setup Java environment | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Maven setup | ||
uses: ./.github/actions/mvn-setup | ||
with: | ||
mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}} | ||
mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} | ||
# Run maven verify | ||
- name: Maven verify | ||
run: mvn verify --batch-mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# OS | ||
.DS_Store | ||
Thumbs.db | ||
|
||
target | ||
|
||
.idea | ||
*.iml | ||
|
||
#JRebel | ||
rebel.xml | ||
codesigning.asc |
Oops, something went wrong.