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