Skip to content

chore: update changelog and bump version for 2.4.0 #1

chore: update changelog and bump version for 2.4.0

chore: update changelog and bump version for 2.4.0 #1

Workflow file for this run

name: 'Release Draft'
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
permissions:
actions: write
contents: write
deployments: write
packages: write
pull-requests: write
repository-projects: write
jobs:
ubuntu-latest-jdbc-wrapper-release-gh-draft:
name: 'Build And Release Draft'
runs-on: ubuntu-latest
steps:
- name: 'Clone Repository'
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
- name: 'Build Driver'
run: |
./gradlew --no-parallel --no-daemon -x test build
./gradlew --no-parallel --no-daemon -x test shadowJar
- name: 'Set Version Env Variable'
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: 'Get Release Details'
run: |
export RELEASE_DETAILS="$(awk -vN=2 'n<N;/^## /{++n}' CHANGELOG.md)"
export RELEASE_DETAILS="$(sed '${/^# /d;}' <<< "$RELEASE_DETAILS")"
export RELEASE_DETAILS="$(sed '$d' <<< "$RELEASE_DETAILS")"
touch RELEASE_DETAILS.md
echo "$RELEASE_DETAILS" > RELEASE_DETAILS.md
- name: 'Install GPG Secret Key'
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: 'Sign Jars'
working-directory: ./wrapper
run: |
export GPG_TTY=$(tty)
KEYGRIP="$(gpg --with-keygrip -K | grep -Pom1 '^ *Keygrip += +\K.*')"
/usr/lib/gnupg2/gpg-preset-passphrase -c $KEYGRIP <<< ${{ secrets.GPG_PASSPHRASE }}
for jar in build/libs/*.jar; do gpg --detach-sign --armor $jar; done
for signed in build/libs/*.asc; do gpg --verify $signed; done
- name: 'Upload to Draft Release'
uses: ncipollo/release-action@v1
with:
draft: true
name: "AWS Advanced JDBC Driver - v${{ env.RELEASE_VERSION }}"
bodyFile: RELEASE_DETAILS.md
artifacts: ./wrapper/build/libs/*
token: ${{ secrets.GITHUB_TOKEN }}