Skip to content

refactor main.yml workflow to enhance structure and maintain uniformi… #15

refactor main.yml workflow to enhance structure and maintain uniformi…

refactor main.yml workflow to enhance structure and maintain uniformi… #15

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 Bun
uses: oven-sh/setup-bun@v2
with:
node-version: 'latest'
- name: 🔨 Build Project
run: |
bun install
bun run favicon
bun run build
- 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 }}
protocol: ftp
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/.pnpm-store/**