-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (31 loc) · 961 Bytes
/
Copy pathdeploy-dev.yml
File metadata and controls
33 lines (31 loc) · 961 Bytes
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
name: Development deploy
on:
push:
branches:
- dev
- experimental/vite-react-rework
workflow_dispatch:
jobs:
development-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: pnpm/action-setup@v6
with:
cache: true
- name: Install Dependencies
run: pnpm ci
- name: Build
run: pnpm run build
- name: Upload dist
uses: appleboy/scp-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: 'dist/**'
target: '${{ secrets.REMOTE_TARGET_DEV }}'
rm: true
strip_components: 1