29 lines
613 B
YAML
29 lines
613 B
YAML
on:
|
|
push:
|
|
branches: [ "deploy/prod" ]
|
|
pull_request:
|
|
branches: [ "deploy/prod" ]
|
|
|
|
name: 🚀 Deploy website on push
|
|
jobs:
|
|
web-deploy:
|
|
name: 🎉 Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🚚 Get latest code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: 🔨 Build Project
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: 📂 Sync files
|
|
uses: SamKirkland/FTP-Deploy-Action@4.3.2
|
|
with:
|
|
server: 305244.w44.wedos.net
|
|
username: w305244_BOT007
|
|
password: ${{ secrets.FTP_PASSWORD }}
|
|
'local-dir': ./dist/
|
|
'server-dir': www/
|