-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.32 KB
/
react.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
42
43
44
45
46
name: Livelogs CI
on:
pull_request:
paths:
- src/main/livelogs/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: src/main/livelogs/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/*.package.json*') }}
restore-keys: |
${{ runner.os }}-nodemodules-
- name: Install Packages
run: yarn install
working-directory: src/main/livelogs
- name: Build Project
run: yarn build
working-directory: src/main/livelogs
- name: Clear Previous Version
run: rm -rf src/main/www/livelogging/*
- name: Move Build Result
run: mv build/* ../www/livelogging/
working-directory: src/main/livelogs
- name: Push Changes
continue-on-error: true
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "generated"
git push