Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanaptx4869 authored Sep 12, 2024
1 parent 694b7c4 commit 76f45da
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
run: npm run build


# - name: Deploy to GitHub Pages
# uses: JamesIves/github-pages-deploy-action@v4
# if: ${{ github.ref == 'refs/heads/main' }}
# with:
# branch: gh-pages//这个是存储你项目打包后的文件分支
# folder: dist
# # token: ${{ secrets.TOKEN }}


- name: copy dist file with scp
uses: appleboy/[email protected]
with:
Expand All @@ -41,6 +50,4 @@ jobs:
password: ${{ secrets.REMOTE_PASS }}
port: 22
source: 'dist/'
script: |
cd /www/wwwroot/8.152.0.253/something0408 # 替换为您的项目在服务器上的位置
git pull origin main # 拉取最新代码
target: '/www/wwwroot/8.152.0.253/something0408/'

0 comments on commit 76f45da

Please sign in to comment.