FIX: syntax error #62
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: Deploy Vue.js App | |
on: | |
push: | |
branches: | |
- main # Remplacez par la branche que vous souhaitez surveiller | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '23.1.0' # Remplacez par la version de Node.js que vous utilisez | |
- name: Install dependencies | |
run: npm install | |
- name: Build Vue.js app | |
run: npm run build | |
- name: Upload to SFTP | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.SFTP_SERVER }} | |
username: ${{ secrets.SFTP_USERNAME }} | |
password: ${{ secrets.SFTP_PASSWORD }} | |
local-dir: dist/ | |
server-dir: /gites-bazoches/ombre-oiseau/ | |
port: 21 | |
protocol: ftp |