Skip to content

hotfix: add caching config to .htaccess #9

hotfix: add caching config to .htaccess

hotfix: add caching config to .htaccess #9

Workflow file for this run

name: Deploy to cPanel
on:
push:
branches: [ main ] # or whatever your default branch is
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to cPanel via FTP
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./dist/
server-dir: ./
exclude: |
**/.git*
**/.git*/**
**/node_modules/**