Clean up workflows, add command to restart API after uploading new one.
Build and Deploy Web App / build-and-deploy (push) Successful in 19s Details
Build and Deploy API / build-and-deploy (push) Successful in 1m16s Details

This commit is contained in:
Andrew Lalis 2025-08-09 09:53:06 -04:00
parent cf0ced975a
commit 85d760c09d
2 changed files with 10 additions and 5 deletions

View File

@ -22,5 +22,8 @@ jobs:
known_hosts: ${{ secrets.SSH_HOST }}
- name: Setup rsync
uses: GuillaumeFalourd/setup-rsync@v1.2
- run: rsync -avz -e ssh --delete finnow-api root@andrewlalis.com:/opt/finnow/finnow-api
- name: Upload API Executable
run: rsync -avz -e ssh --delete finnow-api root@andrewlalis.com:/opt/finnow/finnow-api
working-directory: ./finnow-api
- name: Restart API
run: ssh -f root@andrewlalis.com 'systemctl restart finnow-api.service'

View File

@ -1,9 +1,9 @@
name: Build Web App
name: Build and Deploy Web App
on:
push:
paths:
- 'web-app/**'
- '.gitea/workflows/build-web-app.yaml'
- '.gitea/workflows/web-app.yaml'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
@ -14,7 +14,8 @@ jobs:
node-version: '22.x'
- run: npm ci
working-directory: ./web-app
- run: npm run build
- name: Build
run: npm run build
working-directory: ./web-app
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
@ -23,5 +24,6 @@ jobs:
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
- name: Upload static web content
run: rsync -rav -e ssh --delete dist/* root@andrewlalis.com:/opt/finnow/app-content
working-directory: ./web-app