ci: release version 2.15.0 🎉 #5
Workflow file for this run
This file contains hidden or 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
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # Copyright (c) StreamThoughts | |
| # | |
| # Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| name: Deploy Maven Central | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| env: | |
| JAVA_VERSION: '11' | |
| JAVA_DISTRO: 'zulu' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: 'Checkout GitHub repository' | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| clean: true | |
| - name: 'Set up Java' | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DISTRO }} | |
| cache: 'maven' | |
| - name: 'Import GPG key' | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - name: 'Set up Maven settings' | |
| run: | | |
| echo "<settings><interactiveMode>false</interactiveMode><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers></settings>" > ./settings.xml | |
| - name: 'Deploy Maven Central' | |
| run: | | |
| chmod +x ./mvnw | |
| ./mvnw -s ./settings.xml deploy -Possrh |