Skip to content

Commit

Permalink
Merge branch 'AEMaaCS/develop' of https://github.com/merkle-open/aem-…
Browse files Browse the repository at this point in the history
…generic-multifield into 6.5/develop

# Conflicts:
#	README.md
#	pom.xml
  • Loading branch information
mheil committed Mar 21, 2024
2 parents 9bb80bd + 684135b commit fabbaab
Show file tree
Hide file tree
Showing 31 changed files with 587 additions and 340 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: deploy snapshot

on:
push:
branches:
- develop

jobs:
deploy-snapshot:

runs-on: ubuntu-latest

steps:
# Checkout source code
- name: Checkout
uses: actions/checkout@v4
# Setup Java environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: zulu
# Run maven verify
- name: Maven verify
run: mvn verify --batch-mode
# Publish
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.OSSRH_USER }}
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
66 changes: 66 additions & 0 deletions .github/workflows/release-and-deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: release and deploy

on:
push:
branches:
- master

jobs:
release:

runs-on: ubuntu-latest

steps:
# Checkout source code
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
# Setup Java environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: zulu
# Install xmllint
- name: Install dependencies
run: sudo apt-get install libxml2-utils
# Set git username 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@v4
with:
ref: 'master'
# Setup Java environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: zulu
# Run maven verify
- name: Maven verify
run: mvn verify --batch-mode
# Publish
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.OSSRH_USER }}
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
26 changes: 26 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: verify

on:
push:
branches-ignore:
- master
- develop

jobs:
verify:

runs-on: ubuntu-latest

steps:
# Checkout source code
- name: Checkout
uses: actions/checkout@v4
# Setup Java environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: zulu
# Run maven verify
- name: Maven verify
run: mvn verify --batch-mode
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Namics AG
Copyright (c) 2018 Merkle Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
33 changes: 33 additions & 0 deletions ci/mvn-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

function getVersion() {
xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' pom.xml
}

CURRENT_VERSION=$(getVersion)
if [[ $CURRENT_VERSION == *-SNAPSHOT ]]; then
echo "perform release"
mvn versions:set -DremoveSnapshot versions:commit --no-transfer-progress
NEW_VERSION=$(getVersion)

echo "commit new release version"
git commit -a -m "Release $NEW_VERSION: set master to new release version"

echo "Update version in README.md"
sed -i -e "s|<version>[0-9A-Za-z._-]\{1,\}</version>|<version>$NEW_VERSION</version>|g" README.md && rm -f README.md-e
git commit -a -m "Release $NEW_VERSION: Update README.md"

echo "create tag for new release"
git tag -a $NEW_VERSION -m "Release $NEW_VERSION: tag release"

echo "update develop version"
git fetch --all
git checkout develop
mvn versions:set -DnextSnapshot versions:commit --no-transfer-progress
NEXT_SNAPSHOT=$(getVersion)
echo "commit new snapshot version"
git commit -a -m "Release $NEW_VERSION: set develop to next development version $NEXT_SNAPSHOT"

git push --all
git push --tags
fi
4 changes: 4 additions & 0 deletions ci/setup-git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

git config --global user.email "oss@namics.com"
git config --global user.name "Namics OSS CI"
Binary file removed codesigning.asc.enc
Binary file not shown.
Binary file added docs/component.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/main.png
Binary file not shown.
Binary file modified docs/repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 0 additions & 23 deletions mvnsettings.xml

This file was deleted.

Loading

0 comments on commit fabbaab

Please sign in to comment.