Skip to content

Commit

Permalink
ci: 改良
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Jul 9, 2024
1 parent ea45014 commit 589129b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- master # default branch
- improve-ci-2 # default branch

jobs:
build:
Expand Down Expand Up @@ -43,9 +43,19 @@ jobs:
echo "$KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan 20.115.186.5 >> ~/.ssh/known_hosts
- name: Deploy
- name: Install deps
run: |
sudo apt install expect tcl -y
cd ./deploy
chmod +x deploy.sh unzipServer.sh upload.sh
./deploy.sh
- name: Upload website
run: |
rm -rf website*
# Build website
pnpm i
pnpm run build
zip -r website.zip ../website/
scp website.zip [email protected]:/home/aosc/web/
- name: Unzip website
run: |
cd deploy
./unzipServer.sh
4 changes: 0 additions & 4 deletions deploy/deploy.sh

This file was deleted.

Empty file modified deploy/unzipServer.sh
100644 → 100755
Empty file.
9 changes: 0 additions & 9 deletions deploy/upload.sh

This file was deleted.

0 comments on commit 589129b

Please sign in to comment.