forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.03 KB
/
ci-publish-workspace.yaml
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
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 8
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"
- 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.name=${{inputs.workspace-name}}
name: CI Publish Workspaces
on:
workflow_call:
inputs:
workspace-name:
required: true
type: string
secrets:
LIFERAY_NEXUS_PASSWORD:
required: true
LIFERAY_NEXUS_USERNAME:
required: true