Files
mattrbld/.drone.yml

23 lines
699 B
YAML
Raw Normal View History

2026-05-13 13:36:51 -07:00
kind: pipeline
type: docker
name: default
steps:
- name: test
image: node:current
2026-05-13 15:39:03 -07:00
environment:
GIT_TOKEN:
from_secret: GIT_TOKEN
2026-05-13 13:36:51 -07:00
commands:
- npm install
- npm run build
2026-05-13 15:39:03 -07:00
- apt-get update && apt-get install -y rsync
2026-05-13 16:21:45 -07:00
- rsync -uavh _site/ mattrbld-site --delete --exclude .git
2026-05-13 14:02:39 -07:00
- cd mattrbld-site
- git config --global --add safe.directory /drone/src/mattrbld-site
2026-05-13 15:58:51 -07:00
- git add *
2026-05-13 16:21:45 -07:00
- git commit -m "drone build $(date)"
2026-05-13 15:39:03 -07:00
- 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'
2026-05-13 14:02:39 -07:00
- git push