-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 896 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy (SSH)
on:
push:
branches: [main]
# allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: static-website
- name: Debug
run: ls -la
- name: Deploy to VPS using SCP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: ./*
target: ${{ secrets.VPS_PROJECT_PATH }}