Skip to content

Commit a04aa71

Browse files
committed
Change DEPLOY.yml
1 parent 8dce9fd commit a04aa71

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/DEPLOY.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ jobs:
2424
- name: Build project
2525
run: npm run build
2626

27-
- name: Deploy dist folder to GitHub Pages
28-
uses: peaceiris/actions-gh-pages@v3
27+
- name: Upload via SCP
28+
uses: appleboy/scp-action@v0.1.4
2929
with:
30-
github_token: ${{secrets.DENEME_TOKEN}}
31-
publish_dir: ./dist
30+
host: ${{ secrets.DEPLOY_HOST }}
31+
username: ${{ secrets.DEPLOY_SSH_USER }}
32+
key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
33+
source: "dist/*"
34+
target: "/home/${{ secrets.DEPLOY_SSH_USER }}/public_html/"
35+
rm: true

0 commit comments

Comments
 (0)