diff --git a/.gitea/workflows/dev-build.yaml b/.gitea/workflows/dev-build.yaml index 508885f..eff74ef 100644 --- a/.gitea/workflows/dev-build.yaml +++ b/.gitea/workflows/dev-build.yaml @@ -6,13 +6,11 @@ jobs: Build-PWA: runs-on: ubuntu-22.04 steps: - - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." - - name: List files in the repository - run: | - npm run build --prefix /home/mserver/ALVINN/ALVINN_f7/ - - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file + - name: Build pwa + run: npm run build --prefix /home/mserver/ALVINN/ALVINN_f7/ + - name: Clear previous dev pwa + run: rm -R /var/www/html/alvinn-dev/* + - name: Copy new dev pwa + run: cp -R /home/mserver/ALVINN/ALVINN_f7/www/* /var/www/html/alvinn-dev + - name: Final Status + run: echo "This job's status is ${{ job.status }}." \ No newline at end of file