-
Notifications
You must be signed in to change notification settings - Fork 4
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 #16 from ashley-taylor/master
add one of support and remove jackson
- Loading branch information
Showing
135 changed files
with
7,325 additions
and
4,026 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 |
---|---|---|
@@ -1,29 +1,90 @@ | ||
name: Release | ||
on: | ||
workflow_dispatch | ||
permissions: | ||
contents: write | ||
packages: write | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
type: choice | ||
description: "Release type" | ||
required: true | ||
default: minor | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Release | ||
uses: qcastel/[email protected] | ||
with: | ||
release-branch-name: "master" | ||
maven-args: "-P sonatype" | ||
git-release-bot-name: "release-bot" | ||
git-release-bot-email: "[email protected]" | ||
|
||
gpg-enabled: "true" | ||
gpg-key-id: ${{ secrets.GPG_KEY_ID }} | ||
gpg-key: ${{ secrets.GPG_KEY }} | ||
|
||
maven-repo-server-id: sonatype | ||
maven-repo-server-username: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }} | ||
maven-repo-server-password: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }} | ||
|
||
access-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: zulu | ||
- uses: whelk-io/maven-settings-xml-action@v22 | ||
with: | ||
servers: > | ||
[ | ||
{ "id": "sonatype", "username": "${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}", "password": "${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}" } | ||
] | ||
- name: set name | ||
run: | | ||
git config --global user.name "release-bot"; | ||
git config --global user.email "[email protected]"; | ||
- name: add key | ||
run: | | ||
echo "${{ secrets.GPG_KEY }}" | base64 -d > private.key | ||
gpg --batch --import ./private.key | ||
rm ./private.key | ||
gpg --list-secret-keys --keyid-format LONG | ||
- name: Get current development version | ||
id: get_version | ||
run: | | ||
VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//' ) | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
- name: Generate versions | ||
id: generate_versions | ||
uses: WyriHaximus/[email protected] | ||
with: | ||
version: ${{ steps.get_version.outputs.version }} | ||
|
||
- name: Pick release version | ||
id: pick_release_version | ||
run: | | ||
VERSION=$( | ||
case ${{ github.event.inputs.releaseType }} in | ||
("minor") echo "${{ steps.generate_versions.outputs.minor }}" ;; | ||
("major") echo "${{ steps.generate_versions.outputs.major }}" ;; | ||
("patch") echo "${{ steps.generate_versions.outputs.patch }}" ;; | ||
esac | ||
) | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
- name: prepare | ||
run: | | ||
mvn release:prepare -Dusername=${{ secrets.GITHUB_TOKEN }} \ | ||
-DreleaseVersion=${{ steps.pick_release_version.outputs.version }} \ | ||
-DdevelopmentVersion=${{ steps.pick_release_version.outputs.version }}-SNAPSHOT \ | ||
-P sonatype | ||
- name: release | ||
run: | | ||
mvn release:perform -Dusername=${{ secrets.GITHUB_TOKEN }} \ | ||
-DreleaseVersion=${{ steps.pick_release_version.outputs.version }} \ | ||
-DdevelopmentVersion=${{ steps.pick_release_version.outputs.version }}-SNAPSHOT \ | ||
-Darguments="-DskipTests" \ | ||
-P sonatype |
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,21 +1,22 @@ | ||
name: Test | ||
on: | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build with Maven | ||
run: mvn -B test --file pom.xml | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: zulu | ||
- name: Build with Maven | ||
run: mvn -B test --file pom.xml |
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 @@ | ||
/target/ | ||
/.classpath | ||
/.project | ||
.settings | ||
.settings | ||
.idea/* | ||
|
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
Oops, something went wrong.