From 839924942a6b1a36e51899443947a05eb78f5e67 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 28 Apr 2024 16:31:41 -0700 Subject: [PATCH] Full local build of checked out main branch in dev workflow Signed-off-by: Justin Georgi --- .gitea/workflows/dev-build.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/dev-build.yaml b/.gitea/workflows/dev-build.yaml index 6ca0398..3007688 100644 --- a/.gitea/workflows/dev-build.yaml +++ b/.gitea/workflows/dev-build.yaml @@ -8,6 +8,17 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - name: List files in the repository + - name: Install node modules + run: npm install + - name: Build pwa + run: npm run build + - name: Clear previous dev pwa run: | - ls ${{ gitea.workspace }} \ No newline at end of file + rm -R /var/www/html/alvinn-dev/* + echo "Old files removed" + - name: Copy new dev pwa + run: | + cp -R ${{ gitea.workspace }}/www/* /var/www/html/alvinn-dev + echo "New files copied" + - name: Final Status + run: echo "This job's status is ${{ job.status }}." \ No newline at end of file