generated from inherentlee/11ty
continue iterating on dronefile
This commit is contained in:
@ -5,14 +5,17 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: node:current
|
image: node:current
|
||||||
|
environment:
|
||||||
|
GIT_TOKEN:
|
||||||
|
from_secret: GIT_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- apt-get update
|
- apt-get update && apt-get install -y rsync
|
||||||
- apt-get install -y rsync
|
|
||||||
- rsync -uav _site/ mattrbld-site
|
- rsync -uav _site/ mattrbld-site
|
||||||
- cd mattrbld-site
|
- cd mattrbld-site
|
||||||
- git config --global --add safe.directory /drone/src/mattrbld-site
|
- git config --global --add safe.directory /drone/src/mattrbld-site
|
||||||
- git status
|
|
||||||
- git commit -am "update site at $(date '+%Y-%m-%d %H:%M:%S')"
|
- git commit -am "update site at $(date '+%Y-%m-%d %H:%M:%S')"
|
||||||
|
- 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
|
- git push
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
_live
|
_live
|
||||||
_site
|
_site
|
||||||
node_modules
|
node_modules
|
||||||
|
secrets.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user