Skip to content

Commit

Permalink
feat: add ci
Browse files Browse the repository at this point in the history
Signed-off-by: Woshiluo Luo <[email protected]>
  • Loading branch information
woshiluo committed Sep 5, 2024
1 parent 83b8e8e commit 307e8bd
Show file tree
Hide file tree
Showing 3 changed files with 8,333 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Deploy

on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "22"

- name: Install and Build
run: |
yarn install
yarn build
- name: Upload to Deploy Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
port: ${{ secrets.SERVER_PORT }}
source: './dist/*'
target: '/var/www/html'
overwrite: true
strip_components: 1
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"react-popper": "^2.2.5",
"react-router-dom": "^5.0.0",
"sass": "^1.63.4",
"sass-loader": "^7.1.0"
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.7.16"
}
}
Loading

0 comments on commit 307e8bd

Please sign in to comment.