Skip to content

test 4 added github workflow #4

test 4 added github workflow

test 4 added github workflow #4

Workflow file for this run

name: πŸš€ Deploy website to Hostinger on push
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: πŸ”¨ Build Project
run: |
npm install
CI=false npm run build
- name: List output files
run: find build/ -print
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: build/
server-dir: public_html/youtube/