Skip to content

refactor main.yml workflow for improved clarity and consistency with … #4

refactor main.yml workflow for improved clarity and consistency with …

refactor main.yml workflow for improved clarity and consistency with … #4

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/**