-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from merkle-open/6.4/develop
6.4/develop
- Loading branch information
Showing
15 changed files
with
264 additions
and
118 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,33 @@ | ||
name: deploy snapshot | ||
|
||
on: | ||
push: | ||
branches: | ||
- 6.4/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 }} |
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,66 @@ | ||
name: release and deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- 6.4/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: '6.4/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 }} |
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,26 @@ | ||
name: verify | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 6.4/master | ||
- 6.4/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 |
This file was deleted.
Oops, something went wrong.
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
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
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,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 6.4/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 |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "Namics OSS CI" |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.