Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Manual Maven Deploy Package

on:
workflow_dispatch:
inputs:
VERSION:
description: 'The SemVer version number'
required: true

jobs:
build:

runs-on: ubuntu-latest

env:
artifact_name: jpt

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
server-id: github

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Update package version
run: mvn versions:set -DnewVersion=${{ github.event.inputs.VERSION }}

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -PgithubDeploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


8 changes: 4 additions & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

- name: Set up JDK 1.8 for deploy to OSSRH
- name: Set up JDK 11 for deploy to OSSRH
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 1.11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
Expand All @@ -42,10 +42,10 @@ jobs:
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Set up JDK 1.8 for deploy to github packages
- name: Set up JDK 11 for deploy to github packages
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 1.11
server-id: github

- name: Publish to GitHub Packages Apache Maven
Expand Down
Loading