-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (68 loc) · 2.29 KB
/
release-tackle.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release Tackle
on:
workflow_dispatch:
inputs:
release_version:
description: "The value of the version to be released"
required: true
default: "Ex: 6.0.0.Final"
type: string
jobs:
tackle:
runs-on: ubuntu-latest
steps:
- name: Checkout CI
uses: actions/checkout@v3
with:
path: ci
- uses: actions/checkout@v3
with:
repository: windup/windup
path: windup
token: ${{ secrets.GH_PAT }}
ref: ${{ github.event.inputs.release_version }}
- uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
path: windup-rulesets
token: ${{ secrets.GH_PAT }}
ref: ${{ github.event.inputs.release_version }}
- uses: actions/checkout@v3
with:
repository: windup/windup-distribution
path: windup-distribution
token: ${{ secrets.GH_PAT }}
ref: ${{ github.event.inputs.release_version }}
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.7
- name: Build
run: |
mvn install -DskipTests -DskipThemeWindup -P tackle -f windup
mvn install -DskipTests -DskipThemeWindup -P tackle -f windup-rulesets
- name: OSSRH Snapshot
run: |
export SETTINGS_XML=$(readlink -f ci/maven/settings.xml)
export GPG_SCRIPT=$(readlink -f ci/scripts/gpghack.sh)
cd windup-distribution && mvn verify \
source:jar javadoc:jar \
gpg:sign install:install deploy:deploy \
-Dgpg.executable="$GPG_SCRIPT" \
-DskipTests \
-DskipThemeWindup -P tackle \
-s $SETTINGS_XML \
-gs /home/runner/.m2/settings.xml
env:
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}