Skip to content

Commit c1a6edb

Browse files
author
wangmengli
committed
添加配置文件
1 parent fc0b8f5 commit c1a6edb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Astro Static Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Deploy via SSH
16+
uses: appleboy/ssh-action@v0.1.7
17+
with:
18+
host: 43.173.119.58
19+
port: 22735
20+
username: root
21+
key: ${{ secrets.SSH_KEY }}
22+
script: |
23+
mkdir -p /home/scraper-webui-docs
24+
cd /home/scraper-webui-docs
25+
if [ -d ".git" ]; then
26+
git reset --hard
27+
git pull origin main
28+
else
29+
git clone https://github.com/CafeScraper/scraper-webui-docs.git .
30+
fi
31+
npm install -g pnpm
32+
pnpm install
33+
pnpm run build

0 commit comments

Comments
 (0)