Files
mattrbld/.drone.yml
Lee Cattarin 29cff6f7ae
Some checks failed
continuous-integration/drone/push Build is failing
add another ls for debug...sigh
2026-05-14 10:32:51 -07:00

26 lines
795 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:
- npm install
- npm run build
- apt-get update && apt-get install -y rsync
- ls -al mattrbld-site
- rsync -uavh _site/ $REPOSITORY --delete --exclude .git
- cd $REPOSITORY
- ls -al
- git config --global --add safe.directory /drone/src/$REPOSITORY
- git add -A
- git commit -m "drone build $(TZ=':America/Los_Angeles' date)"
- git remote set-url origin https://heckin.technology/inherentlee/$REPOSITORY.git
- git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f'
- git push