-
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.
Co-authored-by: kaklakariada <[email protected]> Co-authored-by: kaklakariada <[email protected]>
- Loading branch information
1 parent
7a33ce3
commit 57f4a05
Showing
14 changed files
with
205 additions
and
116 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
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,30 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
base_dir="$( cd "$(dirname "$0")/../.." >/dev/null 2>&1 ; pwd -P )" | ||
readonly base_dir | ||
readonly pom_file="$base_dir/pom.xml" | ||
|
||
# Read project version from pom file | ||
project_version=$(grep "<version>" "$pom_file" | sed --regexp-extended 's/\s*<version>(.*)<\/version>\s*/\1/g' | head --lines=1) | ||
readonly project_version | ||
echo "Read project version '$project_version' from $pom_file" | ||
|
||
# Create GitHub release | ||
readonly changes_file="$base_dir/doc/changes/changes_${project_version}.md" | ||
notes=$(cat "$changes_file") | ||
readonly notes | ||
|
||
readonly title="Release $project_version" | ||
readonly tag="$project_version" | ||
echo "Creating release:" | ||
echo "Git tag : $tag" | ||
echo "Title : $title" | ||
echo "Changes file : $changes_file" | ||
|
||
release_url=$(gh release create --latest --title "$title" --notes "$notes" --target main "$tag") | ||
readonly release_url | ||
echo "Release URL: $release_url" |
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,63 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
skip-deploy-maven-central: | ||
description: "Skip deployment to Maven Central" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: "bash" | ||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: false | ||
permissions: | ||
contents: write # Required for creating GitHub release | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Fail if not running on main branch | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') | ||
- name: Set up Maven Central Repository | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 11 | ||
cache: "maven" | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Build | ||
run: mvn --batch-mode -T 1C clean install | ||
|
||
- name: List secret GPG keys | ||
run: gpg --list-secret-keys | ||
|
||
- name: Publish to Maven Central Repository | ||
if: ${{ !inputs.skip-deploy-maven-central }} | ||
run: mvn --batch-mode deploy -Possrh -DstagingDescription="Deployed via GitHub workflow release.yml" | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} | ||
|
||
- name: Create GitHub Release | ||
run: ./.github/workflows/github_release.sh | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Changes | ||
|
||
* [2.0.2](changes_2.0.2.md) | ||
* [2.0.1](changes_2.0.1.md) | ||
* [2.0.0](changes_2.0.0.md) | ||
* [1.0.0](changes_1.0.0.md) | ||
* [1.0.0](changes_1.0.0.md) |
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,17 @@ | ||
# hamcrest-multiline-text-matcher 2.0.1, released 2021-04-17 | ||
|
||
Codename: Update dependencies on top of 2.0.0 | ||
|
||
## Summary | ||
|
||
In version 2.0.1 we updated dependencies. | ||
|
||
## Changes | ||
|
||
* #6: Migrated deployment from JCentral to Maven Central | ||
* #8: Updated dependencies | ||
|
||
## Bugfixes | ||
|
||
* #3: Fixed links in developer guide | ||
* #7: Run Sonar only when token is available |
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,11 @@ | ||
# hamcrest-multiline-text-matcher 2.0.2, released 2024-09-02 | ||
|
||
Codename: Update dependencies on top of 2.0.1 | ||
|
||
## Summary | ||
|
||
In version 2.0.1 we updated dependencies and plugins and updated to Hamcrest 3.0. We also added tests using Java 17 and 21. | ||
|
||
## Changes | ||
|
||
* #9: Updated dependencies |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.