-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (28 loc) · 811 Bytes
/
manual-deploy-github-only.yml
File metadata and controls
37 lines (28 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Manual Maven Deploy Package GH
on:
workflow_dispatch:
inputs:
VERSION:
description: 'The SemVer version number'
required: true
jobs:
deploygh:
runs-on: ubuntu-latest
env:
artifact_name: jpt
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17 for deploy to github packages
uses: actions/setup-java@v5
with:
distribution: 'adopt'
java-version: '17'
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 }}