We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0b8f5 commit c1a6edbCopy full SHA for c1a6edb
1 file changed
.github/workflows/deploy.yml
@@ -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