Files
ALVINN_f7/.gitea/workflows/dev-build.yaml
Justin Georgi bef78d4343
Some checks failed
Build Dev PWA / Build-PWA (push) Failing after 30s
Check dev-build docker hostname
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-06-09 10:15:33 -07:00

32 lines
882 B
YAML

name: Build Dev PWA
run-name: ${{ gitea.actor }} is building new dev pwa version
on:
push:
branches:
- main
jobs:
Build-PWA:
runs-on: ubuntu-22.04
steps:
- name: Debug ssh security
run: |
whoami
hostname
ls /root/.ssh
- name: Check out repository code
uses: actions/checkout@v4
- name: Install node modules
run: npm install
- name: Build pwa
run: npm run build
- name: Clear previous dev pwa
run: |
ssh root@balerion.lan "rm -R /var/www/html/alvinn-dev/*"
echo "Old files removed"
- name: Copy new dev pwa
run: |
scp -r ${{ gitea.workspace }}/www/* root@balerion.lan:/var/www/html/alvinn-dev
ssh root@balerion.lan "chown -R www-data:www-data /var/www/html/alvinn-dev/*"
echo "New files copied"