62 Star 296 Fork 169

bopo / mootdx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.drone.yml 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
bopo 提交于 2024-03-11 10:56 . update drone.yml
---
kind: pipeline
name: default
type: docker
steps:
- name: test
image: mootdx:ci
commands:
- pytest -vs
- name: pypi
image: mootdx:ci
commands:
- python -m pip install poetry
- python -m poetry publish --no-cache --build --username=__token__ --password=$PYPI_PASSWORD
environment:
PYPI_PASSWORD:
from_secret: pypi_password
when:
ref:
include:
- refs/tags/**
# - name: sync
# image: mootdx:ci
# environment:
# SSH_KEY:
# from_secret: ssh_key
# commands:
# - echo "$SSH_KEY" > ~/.ssh/id_rsa
# - git remote add github git@github.com:mootdx/mootdx.git
# - git remote add gitee git@gitee.com:ibopo/mootdx.git
# - git checkout develop
# - git pull gitee develop
# - git push gitee develop
# - git pull github develop
# - git push github develop
#
# - name: publish
# image: mootdx:ci
# environment:
# USERNAME:
# from_secret: username
# PASSWORD:
# from_secret: password
# commands:
# - make history USERNAME=$USERNAME PASSWORD=$PASSWORD
# - make publish USERNAME=$USERNAME PASSWORD=$PASSWORD
# when:
# event:
# - promote
# target:
# - production
Python
1
https://gitee.com/ibopo/mootdx.git
git@gitee.com:ibopo/mootdx.git
ibopo
mootdx
mootdx
master

搜索帮助