From 44257321ca59d8f7c9c9ac1637bb3c3c94c38ef7 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 18 Dec 2025 17:55:51 +0100 Subject: [PATCH] Add Forgejo deploy workflow with selective sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configure automated deployment via FTP that mirrors all files except hidden ones, with special handling for assets/css to sync only compiled CSS files (style.css and style.css.map). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .forgejo/workflows/deploy.yml | 36 ++ .gitignore | 4 +- assets/css/style.css | 618 ++++++++++++++++++++++++++++++++++ assets/css/style.css.map | 1 + 4 files changed, 656 insertions(+), 3 deletions(-) create mode 100644 .forgejo/workflows/deploy.yml create mode 100644 assets/css/style.css create mode 100644 assets/css/style.css.map diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..3a2fdb1 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + name: Deploy to pre-production + runs-on: docker + steps: + - name: Checkout code + run: | + git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . + ls -la + + - name: Deploy via FTP + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + PRODUCTION_HOST: ${{ secrets.PRODUCTION_HOST }} + run: | + apt-get update -qq && apt-get install -y -qq lftp + cat > /tmp/lftp-script.txt <