This commit is contained in:
parent
97cfe7d7da
commit
9ea5c61198
30
.drone.yml
Normal file
30
.drone.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default-linux-amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: gohugoio/hugo
|
||||
commands:
|
||||
- hugo --destination build
|
||||
- name: archive
|
||||
image: gohugoio/hugo
|
||||
commands:
|
||||
- cd build
|
||||
- tar -czvf website-${DRONE_TAG}.tar.gz .
|
||||
- cd
|
||||
when:
|
||||
event: tag
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.paulbsd.com
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: "build/*.tar.gz"
|
||||
checksum:
|
||||
- sha256
|
||||
- sha512
|
||||
when:
|
||||
event: tag
|
Loading…
Reference in New Issue
Block a user