Compare commits

..

3 Commits

Author SHA1 Message Date
c072581e94 Merge branch 'main' of https://git.haaxman.co.uk/hugo/PyStudio
All checks were successful
FTP Upload on Push / deploy (push) Successful in 1m51s
2025-12-26 11:38:11 +00:00
097c729df2 Renamed editor to index 2025-12-26 11:38:04 +00:00
5a3da96b58 Added workflow to deploy to prod 2025-12-26 11:37:11 +00:00
2 changed files with 24 additions and 0 deletions

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