28 lines
787 B
YAML
28 lines
787 B
YAML
name: Build Web App
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'web-app/**'
|
|
- '.gitea/workflows/build-web-app.yaml'
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22.x'
|
|
- run: npm ci
|
|
working-directory: ./web-app
|
|
- run: npm run build
|
|
working-directory: ./web-app
|
|
- name: Install SSH Key
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.DEPLOY_KEY }}
|
|
known_hosts: ${{ secrets.SSH_HOST }}
|
|
- name: Setup rsync
|
|
uses: GuillaumeFalourd/setup-rsync@v1.2
|
|
- run: rsync -rav -e ssh --delete dist/* root@andrewlalis.com:/opt/finnow/app-content
|
|
working-directory: ./web-app
|