Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Sep 24, 2024
0 parents commit c6c6196
Show file tree
Hide file tree
Showing 34 changed files with 2,559 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/release-and-deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: release and deploy

on:
push:
branches:
- main

jobs:
release:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Maven setup
uses: s4u/[email protected]
with:
override: false
servers: |
[{
"id": "magnolia.enterprise.group",
"username": "${{secrets.MGNL_NEXUS_USER}}",
"password": "${{secrets.MGNL_NEXUS_PASS}}"
}]
- name: Maven verify
run: mvn verify --batch-mode
# 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:
- name: Checkout
uses: actions/checkout@v2
with:
ref: 'main'
- 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: Release Maven package
run: mvn deploy -Pdeploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
30 changes: 30 additions & 0 deletions .github/workflows/verify.yml
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:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Maven setup
uses: s4u/[email protected]
with:
override: false
servers: |
[{
"id": "magnolia.enterprise.group",
"username": "${{secrets.MGNL_NEXUS_USER}}",
"password": "${{secrets.MGNL_NEXUS_PASS}}"
}]
- name: Maven verify
run: mvn verify --batch-mode
12 changes: 12 additions & 0 deletions .gitignore
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
Loading

0 comments on commit c6c6196

Please sign in to comment.