forked from hectorqin/reader
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.06 KB
/
pull-request.yml
File metadata and controls
46 lines (42 loc) · 1.06 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
38
39
40
41
42
43
44
45
46
name: Pull Request Check
on:
pull_request:
types: [synchronize, reopened, labeled]
branches:
- master
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
docker:
if: github.repository == 'hectorqin/reader'
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.base.sha }}
clean: false
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: '14'
-
name: Build web
run: cd web && npm install && npm run build
-
name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '8'
cache: 'gradle'
-
name: Build Java
run:
mv ./web/dist ./src/main/resources/web && rm src/main/java/com/htmake/reader/ReaderUIApplication.kt && gradle -b cli.gradle assemble --info && mv ./build/libs/*.jar ./reader.jar