-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (36 loc) · 1.24 KB
/
build_spyral.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
name: Build Spyral
on:
push:
branches:
- master
paths:
- src/main/webapp/resources/spyral/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# with:
# persist-credentials: false # required to install dependencies on github
- uses: actions/setup-node@v2
with:
node-version: 14
# required to install dependencies on github
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Node install
run: npm ci
working-directory: src/main/webapp/resources/spyral
- name: Build Spyral
run: npm run-script build-spyral
working-directory: src/main/webapp/resources/spyral
- name: Commit JS files
run: |
git config --global user.name 'Voyant Tools'
git config --global user.email 'voyanttools@users.noreply.github.com'
git add src/main/webapp/resources/spyral/build/spyral.js src/main/webapp/resources/spyral/build/spyral.js.map
git commit -m "chore: add Spyral build files"
git push