diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e3098b1..eeebb24 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -11,13 +11,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install and Build - run: | - npm install - npm run build + - name: Install Dependencies + run: npm install + + - name: Build with Vite + + run: npx vite build - name: Sync Files run: | - # This clears the old version and puts the new one in - rm -rf /var/www/jody/dist - cp -r dist /var/www/jody/ \ No newline at end of file + mkdir -p /var/www/my-app/dist + rm -rf /var/www/my-app/dist/* + cp -r dist/* /var/www/my-app/dist/ \ No newline at end of file