Files
mattrbld/.drone.yml
2026-05-13 16:21:45 -07:00

23 lines
699 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: node:current
environment:
GIT_TOKEN:
from_secret: GIT_TOKEN
commands:
- npm install
- npm run build
- apt-get update && apt-get install -y rsync
- rsync -uavh _site/ mattrbld-site --delete --exclude .git
- cd mattrbld-site
- git config --global --add safe.directory /drone/src/mattrbld-site
- git add *
- git commit -m "drone build $(date)"
- git remote set-url origin https://heckin.technology/inherentlee/mattrbld-site.git
- git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f'
- git push