-
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 892 Bytes
/
deploy.yaml
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
name: Deploy website on production
on:
push:
branches: ['production']
jobs:
setup_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build --if-present
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.dashboard.amitraikwar.in
username: u392139545.github_deploy_dashwave
password: ${{ secrets.HOSTINGER_DASHWAVE_FTP_PASSWORD }}
local-dir: ./build/
server-dir: ./