Merge pull request #5 from Guysnacho/trigger-cicd #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/' |