Skip to content

Commit 542dc84

Browse files
authored
Update deploy_regru.yml
1 parent 6ed2ac1 commit 542dc84

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

.github/workflows/deploy_regru.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,17 @@ env:
1111
DEPLOY_PATH: /www/otk-help.martinmeer.com
1212

1313
jobs:
14-
build:
14+
deploy:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919

20-
- name: Install dependencies
21-
run: |
22-
npm install
23-
24-
- name: Build project
25-
run: |
26-
npm run build
27-
28-
- name: Archive production artifacts
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: dist
32-
path: ./dist
33-
34-
deploy:
35-
needs: build
36-
runs-on: ubuntu-latest
37-
steps:
38-
- name: Download artifacts
39-
uses: actions/download-artifact@v4
40-
with:
41-
name: dist
42-
4320
- name: Install sshpass
4421
run: sudo apt-get update && sudo apt-get install -y sshpass
4522

4623
- name: Copy files to server
4724
env:
4825
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD_REGRU }}
4926
run: |
50-
sshpass -p $SSH_PASSWORD scp -r dist/* $USERNAME@$SERVER_HOST:$DEPLOY_PATH
27+
sshpass -p $SSH_PASSWORD scp -r ./* $USERNAME@$SERVER_HOST:$DEPLOY_PATH

0 commit comments

Comments
 (0)