refactor main.yml workflow to enhance structure and maintain uniformi… #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/** |