Merge branch 'dev' #12
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
name: FTP Deploy (tiquettes.fr) | |
on: | |
push: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
web-deploy: | |
name: FTP Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build web | |
run: npm run build:web | |
- name: Upload files | |
uses: wlixcc/[email protected] | |
with: | |
sftp_only: true | |
server: ${{ secrets.FTPSERVER }} | |
username: ${{ secrets.FTPUSERNAME }} | |
password: ${{ secrets.FTPPASSWORD }} | |
port: 22 | |
local_path: "./dist/*" | |
remote_path: "./app/" |