Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…thon-Project into faithkovi
  • Loading branch information
FaithKovi committed Jul 21, 2023
2 parents 9a9ecaa + ee719b7 commit 0c58c83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
echo ${{ secrets.SSHPASSWORD }} | sudo -S systemctl restart nginx
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
build: {
outDir: 'public',
outDir: 'build',
sourcemap: true,
}
});

0 comments on commit 0c58c83

Please sign in to comment.