Skip to content

update main.yml workflow to align with project structure and enhance … #3

update main.yml workflow to align with project structure and enhance …

update main.yml workflow to align with project structure and enhance … #3

Workflow file for this run

on: push
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: '20.17.0'
- name: πŸ”¨ Build Project
run: |
npm install
npm run build
npm run favicon
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.ftp_password }}
local-dir: ${{ secrets.FTP_PATH }}
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/.pnpm-store/**