Yacd-meta/.drone.yml

31 lines
540 B
YAML
Raw Permalink Normal View History

2023-03-06 09:22:01 +08:00
kind: pipeline
type: docker
name: compile project
steps:
- name: npm
image: plugins/npm
settings:
username:
from_secret: NPM_USERNAME
password:
from_secret: NPM_PASSWORD
email:
from_secret: NPM_EMAIL
commands:
- npm i -g pnpm
- pnpm i
- pnpm build
- tar czf yacd.tar.gz ./public
- name: gitea_release
image: plugins/gitea-release
settings:
2023-04-30 10:26:08 +08:00
api_key:
2023-03-06 09:22:01 +08:00
from_secret: gitea_api_key
base_url: https://git.liyp.cc
files: yacd.tar.gz
when:
event: tag
tag: v*