-
Notifications
You must be signed in to change notification settings - Fork 75
41 lines (38 loc) · 964 Bytes
/
publish.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
name: Publish
on:
push:
branches:
- master
paths-ignore:
- '*.commits'
- '*.markdown'
- '**/*.markdown'
env:
LC_ALL: en_US.UTF-8
jobs:
Publish:
if: (github.repository == 'liferay/liferay-blade-cli')
name: Publish
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
env:
GITHUB_CI: "true"
LIFERAY_NEXUS_USERNAME: ${{ secrets.liferay_nexus_username }}
LIFERAY_NEXUS_PASSWORD: ${{ secrets.liferay_nexus_password }}
shell: bash
run: |
./publish.sh --remote