Skip to content

update main.yml workflow for consistency with project structure #2

update main.yml workflow for consistency with project structure

update main.yml workflow for consistency with project structure #2

Workflow file for this run

on: push
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy

Check failure on line 5 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
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/**