-
Notifications
You must be signed in to change notification settings - Fork 31
32 lines (26 loc) · 1.11 KB
/
ci-cd-production.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
# git ftp init -u "${{ vars.PRODUCTION_FTP_USERNAME }}" -p "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}"
# git ftp push --force -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}"
# git ftp push -vv --auto-init --insecure --changed-only -f -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}"
name: FTP Deploy Source Code
on:
push:
branches: [ "master" ]
jobs:
main:
name: Deploy to Production
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 📂 NPM Install and Build
run: |
npm install
npm run build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.misterprada.com
local-dir: ./dist/
server-dir: /christmas.misterprada.com/
username: ${{ vars.PRODUCTION_FTP_USERNAME }}
password: ${{ secrets.PRODUCTION_FTP_PASSWORD }}