Skip to content

Merge pull request #5 from Guysnacho/trigger-cicd #6

Merge pull request #5 from Guysnacho/trigger-cicd

Merge pull request #5 from Guysnacho/trigger-cicd #6

Workflow file for this run

on:
push:
branches: ['main']
name: 🚀 Deploy site on PR
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20.9.0'
cache: 'npm'
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
# protocol: ftps
port: ${{ secrets.ftp_port }}
local-dir: './build/'
server-dir: 'public_html/2024.mcbios.com/'