Files
PyCanvas/.gitea/workflows/deploy.yaml
Hugo H 09d60b29b3
All checks were successful
FTP Upload on Push / deploy (push) Successful in 8s
FTP Upload on Push / release (push) Successful in 8s
Added code storage api for storing code in the future
2025-12-26 18:08:52 +00:00

25 lines
639 B
YAML

name: FTP Upload on Push
on:
workflow_dispatch:
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" "codestorage/default.php")
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