Skip to content

update: Removal of description files not important to the project #77

update: Removal of description files not important to the project

update: Removal of description files not important to the project #77

Workflow file for this run

name: Deploy to FTP
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set environment variables
env:
ENVIRONMENT: production
MYSQL_DATABASE_NAME: ${{ secrets.MYSQL_DATABASE_NAME }}
MYSQL_USERNAME: ${{ secrets.MYSQL_USERNAME }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
run: |
echo "ENVIRONMENT=production" >> .env
echo "MYSQL_DATABASE_NAME=${MYSQL_DATABASE_NAME}" >> .env
echo "MYSQL_USERNAME=${MYSQL_USERNAME}" >> .env
echo "MYSQL_PASSWORD=${MYSQL_PASSWORD}" >> .env
echo "MYSQL_HOST=${MYSQL_HOST}" >> .env
echo "MYSQL_PORT=${MYSQL_PORT}" >> .env
- name: FTP deployment
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: "/"
local-dir: "./"