stuff
This commit is contained in:
+5
-12
@@ -41,32 +41,25 @@ steps:
|
||||
repo: registry.frontblock.me/vendor/admin
|
||||
tags: ${DRONE_BUILD_CREATED}
|
||||
|
||||
- name: archive static files
|
||||
- name: archive plugin files
|
||||
image: alpine:3.9
|
||||
commands:
|
||||
- apk add --no-cache zip tar
|
||||
- mkdir dist
|
||||
- zip -9r ./dist/${DRONE_REPO_NAME}.zip static
|
||||
- tar -czf ./dist/${DRONE_REPO_NAME}.tar.gz static
|
||||
- apk add --no-cache zip
|
||||
- zip -9r ./dist/plugin.zip static
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: release static files
|
||||
- name: release plugin archive
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://gitea.frontblock.me
|
||||
api_key:
|
||||
from_secret: release_token
|
||||
files:
|
||||
- dist/*
|
||||
- plugin.zip
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
- sha512
|
||||
- adler32
|
||||
- crc32
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
Reference in New Issue
Block a user