screencloud-seafile/.drone.yml

28 lines
654 B
YAML

pipeline:
pretty:
image: unibeautify/autopep8
commands:
- autopep8 imports -r --in-place
- autopep8 main.py --in-place
modules:
image: python:3.5
commands:
- mkdir -p .pip3
- ./make-modules.sh --cache-dir .pip3
package:
image: kramos/alpine-zip
commands:
- zip seafile.zip -r modules icon.png main.py metadata.xml settings.ui
upload_package:
image: vividboarder/drone-webdav
file: seafile.zip
destination: https://git.shimun.net/files/screencloud-seafile/$$TAG.zip
username: git
secrets: [webdav_password]
when:
event: tag
clean:
image: kramos/alpine-zip
commands:
- rm -rf modules