ceramic-static/.forgejo/workflows/deploy.yml
isUnknown e0467f5181
Some checks failed
Deploy / Deploy to Production (push) Failing after 11s
first commit
2026-05-22 17:25:03 +02:00

36 lines
958 B
YAML

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Production
runs-on: docker
container:
image: forgejo-ci-php:latest
steps:
- name: Checkout code
run: |
git clone --depth 1 --branch main https://oauth2:${{ github.token }}@forge.studio-variable.com/${{ github.repository }}.git .
- name: Deploy via FTP
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
HOST: ${{ secrets.HOST }}
run: |
cat > /tmp/lftp-script.txt <<SCRIPT
set ftp:ssl-allow no
open -u $USERNAME,$PASSWORD $HOST
mirror --reverse --verbose --ignore-time --parallel=10 \
--exclude ^\.git/ \
--exclude ^\.forgejo/ \
--exclude ^\.vscode/ \
--exclude \.DS_Store\$ \
. .
quit
SCRIPT
lftp -f /tmp/lftp-script.txt