diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..fd85849 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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 \ No newline at end of file