Skip to content

Merge pull request #617 from mivek/dependencies_update #3

Merge pull request #617 from mivek/dependencies_update

Merge pull request #617 from mivek/dependencies_update #3

Workflow file for this run

name: Manual maven deployment
on:
workflow_dispatch:
inputs:
tag:
description: 'The tag to deploy'
required: true
jobs:
manual_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/@checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
cache: 'maven'
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Retrieve the new version
id: get-version
uses: JActions/[email protected]
- name: Publish to Apache Maven Central
run: mvn clean -DskipTests deploy --settings .settings.xml -P release,ossrh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Upload jars file
uses: actions/[email protected]
with:
name: jars
path: ./target/**/*.jar
retention-days: 5
manual_release:
needs: manual_deploy
runs-on: ubuntu-latest
steps:
- uses: actions/@checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Download artifacts
uses: actions/[email protected]
with:
name: jars
- name: Retrieve the version
id: get-version
uses: JActions/[email protected]
- name: Create the release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.event.inputs.tag }}
prerelease: false
files: |
*.jar