Files
mattrbld/.drone.yml
Lee Cattarin 63895e0ac4
All checks were successful
continuous-integration/drone/push Build is passing
did i figure it out
2026-05-14 11:23:12 -07:00

26 lines
757 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: node:current
environment:
REPOSITORY: mattrbld-site
GIT_TOKEN:
from_secret: GIT_TOKEN
commands:
- git config credential.helper '!f() { echo username=inherentlee; 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
- ls -al
- 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