Skip to content

feat(CD): CD via ftp when push to main branch #1

feat(CD): CD via ftp when push to main branch

feat(CD): CD via ftp when push to main branch #1

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@v3
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: '20'
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ variables.FTP_HOST }}

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

View workflow run for this annotation

GitHub Actions / 🚀 Deploy website on push

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 24, Col: 17): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.FTP_HOST .github/workflows/main.yml (Line: 25, Col: 19): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.FTP_USER
username: ${{ variables.FTP_USER }}
password: ${{ secrets.UNE_PASSWORD }}