From 54b63df970f41785a3a6b8793ccb39e99f562737 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Fri, 15 May 2026 09:23:58 -0700 Subject: [PATCH] drone file --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..69023030 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: node:current + environment: + REPOSITORY: leecat.art-site + GIT_USER: inherentlee + GIT_TOKEN: + from_secret: GIT_TOKEN + commands: + - git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f' + - git submodule update --remote --init --merge + - npm install + - npm run build + - apt-get update && apt-get install -y rsync + - rsync -uavh _site/ $REPOSITORY --delete --exclude .git + - cd $REPOSITORY + - git checkout main + - git config --global --add safe.directory /drone/src/$REPOSITORY + - git add -A + - git commit -m "drone build $(TZ=':America/Los_Angeles' date)" + - git push