forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 1.4 KB
/
Copy pathci-publish-workspace.yaml
File metadata and controls
37 lines (37 loc) · 1.4 KB
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
jobs:
publish-workspaces:
env:
ANT_OPTS: -Xmx2560m
if: ${{github.repository == 'liferay/liferay-portal'}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: "21"
- name: Build with Ant
run: ant
- name: Run publish-workspaces task
run: ant publish-workspaces -Dsonatype.release.password="${{secrets.LIFERAY_NEXUS_PASSWORD}}" -Dsonatype.release.username="${{secrets.LIFERAY_NEXUS_USERNAME}}" -Dworkspace.artifact.id.suffix="${{inputs.workspace-artifact-id-suffix}}" -Dworkspace.includes="${{inputs.workspace-includes}}" -Dworkspace.name="${{inputs.workspace-name}}"
on:
workflow_call:
inputs:
workspace-artifact-id-suffix:
default: ""
required: false
type: string
workspace-includes:
default: "**/*"
required: false
type: string
workspace-name:
required: true
type: string
secrets:
LIFERAY_NEXUS_PASSWORD:
required: true
LIFERAY_NEXUS_USERNAME:
required: true