-
Notifications
You must be signed in to change notification settings - Fork 31
51 lines (45 loc) · 1.79 KB
/
beta_release.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Beta Release to maven-central
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Beta Release version'
required: true
default: 'X.Y.Z-beta1'
tag:
description: 'Github Tag'
required: true
default: 'graphql-orchestrator-java-X.Y.Z-beta1'
developmentVersion:
description: 'Next Development version'
required: true
default: 'X.Y.Z-SNAPSHOT'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: echo "Will release to central maven"
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_GIT_TOKEN }}
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Configure Git User
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
# - name: Set projects Maven version to GitHub Action GUI set version
# run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}"
- name: Publish package
run: mvn --batch-mode -Dtag=${{ github.event.inputs.tag }} -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} release:prepare release:perform -P release -DskipTests=true
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}