33 lines
687 B
YAML
33 lines
687 B
YAML
name: On Push Deploy
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: pusher
|
|
container:
|
|
volumes:
|
|
- /repos:/repos
|
|
- /www/jeopardy:/content
|
|
steps:
|
|
- name: Install Node.js & npm
|
|
run: |
|
|
apk add --no-cache nodejs npm # if your job container is Alpine
|
|
node -v
|
|
npm -v
|
|
- name: Pull and pull
|
|
run: |
|
|
ip addr show eth0
|
|
- name: Install dependencies
|
|
run: |
|
|
cd /repos/music-jeopardy
|
|
git pull
|
|
npm ci
|
|
- name: Build production bundle
|
|
run: |
|
|
cd /repos/music-jeopardy
|
|
npm run generate:data
|
|
npm run build
|
|
cp -r /repos/music-jeopardy/dist/* /content
|