Merge branch 'main' of https://git.haaxman.co.uk/hugo/PyStudio
All checks were successful
FTP Upload on Push / deploy (push) Successful in 1m51s

This commit is contained in:
2025-12-26 11:38:11 +00:00

View File

@@ -0,0 +1,24 @@
name: FTP Upload on Push
on:
push:
branches:
- prod
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Upload specific files via FTP
shell: bash
run: |
FILES=("index.html" "screen.js")
for FILE in "${FILES[@]}"; do
echo "Uploading $FILE..."
curl --ftp-create-dirs -T "$FILE" \
-u "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" \
"ftp://${{ secrets.FTP_SERVER }}/$FILE"
done