-
Notifications
You must be signed in to change notification settings - Fork 168
41 lines (38 loc) · 1011 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-ide')
name: Publish
runs-on: ubuntu-18.04
steps:
- name: Checkout liferay-ide
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache m2 repo
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build repository
shell: bash
run: |
./build-updatesite.sh
- name: Upload p2 repository
shell: bash
run: |
./build/com.liferay.ide-repository/deployToS3.sh ./build/com.liferay.ide-repository/target/repository/ eclipse liferay-ide update-snapshot