30 lines
540 B
YAML
30 lines
540 B
YAML
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:
|
|
api_key:
|
|
from_secret: gitea_api_key
|
|
base_url: https://git.liyp.cc
|
|
files: yacd.tar.gz
|
|
when:
|
|
event: tag
|
|
tag: v*
|