24 lines
No EOL
448 B
YAML
24 lines
No EOL
448 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: klakegg/hugo:0.101.0
|
|
commands:
|
|
- hugo build
|
|
- ls -la
|
|
- ls -lah public
|
|
- name: release
|
|
image: docker:git
|
|
commands:
|
|
- mkdir /tmp/webpage
|
|
- cp -R public/* /tmp/webpage
|
|
- git branch webpage
|
|
- git checkout webpage
|
|
- #git pull origin webpage
|
|
- rm -r -f *
|
|
- cp -R /tmp/webpage/* ./
|
|
- ls -lah
|
|
- git add .
|
|
- git commit -m "Drone" .
|
|
- git pus origin webpage |