Fix: deploy FTPError: 550
#14
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 # Use the desired Node.js version | |
- name: 🔨 Install dependencies and Build Project | |
run: | | |
npm install | |
touch .env.local | |
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> .env.local | |
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} >> .env.local | |
echo AUTHORIZATION=${{ secrets.AUTHORIZATION }} >> .env.local | |
npm run build | |
- name: 📂 Sync files and deploy via FTP | |
uses: SamKirkland/FTP-Deploy-Action@4.3.0 | |
with: | |
server: ftp.crepant.com | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
server-dir: / |