diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3ef7412..130c986 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,8 +28,8 @@ jobs: - name: Upload Build Artifact uses: actions/upload-artifact@v2 with: - name: public - path: public + name: build + path: build deploy: needs: build @@ -41,11 +41,11 @@ jobs: - name: Download Build Artifact uses: actions/download-artifact@v3 with: - name: public - path: public + name: build + path: build - name: remove old build - uses: appleboy/ssh-action@master + uses: appleboy/ssh-action@0.1.10 with: host: ${{ secrets.DROPLET_IP_ADDRESS }} username: ${{ secrets.SSHUSERNAME }} @@ -64,10 +64,10 @@ jobs: remote: "/var/www/gh-copilot/" - name: restart nginx - uses: appleboy/ssh-action@master + uses: appleboy/ssh-action@0.1.10 with: host: ${{ secrets.DROPLET_IP_ADDRESS }} username: ${{ secrets.SSHUSERNAME }} password: ${{ secrets.SSHPASSWORD }} script: | - echo ${{ secrets.SSHPASSWORD }} | sudo -S systemctl restart nginx \ No newline at end of file + echo ${{ secrets.SSHPASSWORD }} | sudo -S systemctl restart nginx diff --git a/vite.config.js b/vite.config.js index 1cb2d7b..c7c923e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], build: { - outDir: 'public', + outDir: 'build', sourcemap: true, } });