Skip to content

Commit

Permalink
remove folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdoulrachard committed Apr 1, 2024
1 parent 12ae4e8 commit 7edaa2e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
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: πŸ—‘οΈ Clear Actions Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: πŸ”¨ Build Project
run: |
npm install
npm run build
- name: πŸ—‘οΈ Remove old files from server
run: |
lftp -e "rm -rf ./cche-ch.com/*" -u ${{ secrets.FTP_USERNAME }},"${{ secrets.FTP_PASSWORD }}" ${{ secrets.FTP_SERVER }}
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER}}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./
local-dir: ./dist/
server-dir: ./cche-ch.com/

0 comments on commit 7edaa2e

Please sign in to comment.