From 8b638257f37f731b7cd353354fed815b1301688e Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sat, 27 Jan 2024 08:17:01 +0100 Subject: [PATCH] Add release pipeline (#819) --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..4a4c1271 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: release +on: + workflow_dispatch: + inputs: + release-tag: + description: 'Version to release' + required: true + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '21' ] + architecture: [ 'x64' ] + name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }} + steps: + - uses: actions/checkout@v4 + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: 'oracle' + java-version: ${{ matrix.java }} + architecture: ${{ matrix.architecture }} + cache: 'maven' + server-id: ossrh + server-username: ${{ secrets.OSSRH_USERNAME }} + server-password: ${{ secrets.OSSRH_TOKEN }} + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + + - name: Release with Maven + run: mvn -DskipTests deploy