Skip to content

Deploy to production #10

Deploy to production

Deploy to production #10

Workflow file for this run

name: Deploy production branch to FTP
on:
push:
branches: [ production ]
concurrency:
group: 'production'
cancel-in-progress: true
jobs:
deploy:
environment:
name: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: production
fetch-depth: 2
- uses: SamKirkland/FTP-Deploy-Action@2.0.0
env:
FTP_SERVER: ${{ vars.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
LOCAL_DIR: ./
REMOTE_DIR: ${{ vars.REMOTE_PRODUCTION_DIR }}
ARGS: --exclude-glob=.git*/**