-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.0-preview.20230409' into master/1.x
- Loading branch information
Showing
27 changed files
with
263 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: 'release' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_version: | ||
description: 'release version; e.g. 0.0.1' | ||
required: true | ||
next_snapshot_version: | ||
description: 'next snapshot version; e.g. 0.0.2-SNAPSHOT' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
|
||
- name: Download jq-1.5 and jq-1.6 | ||
run: | | ||
mkdir -p $HOME/bin | ||
wget -O $HOME/bin/jq-1.5 https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 | ||
wget -O $HOME/bin/jq-1.6 https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 | ||
chmod +x $HOME/bin/jq-1.5 $HOME/bin/jq-1.6 | ||
- name: Configure Maven | ||
env: | ||
M2_SETTINGS_XML: ${{ secrets.M2_SETTINGS_XML }} | ||
run: | | ||
set -euo pipefail | ||
mkdir -p $HOME/.m2 | ||
echo "$M2_SETTINGS_XML" > $HOME/.m2/settings.xml | ||
- name: Configure Git | ||
run: | | ||
set -euo pipefail | ||
# https://github.com/orgs/community/discussions/26560 | ||
git config user.name 'github-actions[bot]' | ||
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
- name: Release | ||
run: | | ||
set -euo pipefail | ||
PATH="$HOME/bin:$PATH" scripts/release.sh ${{ github.event.inputs.release_version }} ${{ github.event.inputs.next_snapshot_version }} | ||
- name: Configure GPG | ||
env: | ||
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | ||
run: | | ||
set -euo pipefail | ||
echo "$GPG_SECRET_KEY" | gpg --batch --import | ||
gpg --list-secret-keys | ||
- name: Build & Deploy | ||
run: | | ||
set -euo pipefail | ||
git checkout master/1.x | ||
PATH="$HOME/bin:$PATH" mvn -Prelease clean deploy | ||
- name: Git Push | ||
run: | | ||
set -euo pipefail | ||
git push --tags | ||
git push --all |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
scriptpath=`readlink -f $0` | ||
scriptdir=`dirname $scriptpath` | ||
scriptpath=$(readlink -f -- "${BASH_SOURCE[0]}") | ||
scriptdir=$(dirname -- "$scriptpath") | ||
|
||
jarpath=`find $scriptdir/../jackson-jq-cli -name "jackson-jq-cli-*.jar" | grep -v sources | grep -v javadoc` | ||
if [ -z $jarpath ]; then | ||
echo "ERROR: jackson-jar-cli-\${version}.jar does not exist; please run 'mvn package' first." 1>&2 | ||
jarpath=$(find "$scriptdir/../jackson-jq-cli" -name "jackson-jq-cli-*.jar" -not -name "*sources*" -not -name "*javadoc*") | ||
if [[ -z "$jarpath" ]]; then | ||
echo "ERROR: jackson-jar-cli-\${version}.jar does not exist; please run 'mvn package' first." >&2 | ||
exit 1 | ||
fi | ||
|
||
java -jar $jarpath "$@" | ||
exec java -jar "$jarpath" "$@" |
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
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.