hotfix: add caching config to .htaccess #9
This file contains hidden or 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
| 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/** |