hisscl/.woodpecker.yml

45 lines
802 B
YAML
Raw Permalink Normal View History

2024-11-14 03:01:01 +00:00
labels:
platform: linux/amd64
clone:
git:
image: woodpeckerci/plugin-git
settings:
tags: true
steps:
2024-11-14 07:27:14 +00:00
test:
image: python
commands:
- python -m unittest
when:
event: [tag, pull_request]
2024-11-14 03:01:01 +00:00
build:
image: python
commands:
2024-11-14 07:27:14 +00:00
- python -m pip install build
2024-11-14 03:01:01 +00:00
- python -m build
when:
event: tag
publish:
image: gitea.elara.ws/music-kraken/plugin-twine
settings:
username: __token__
password:
from_secret: pypi_token
when:
event: tag
release:
image: woodpeckerci/plugin-release
settings:
title: "Version ${CI_COMMIT_TAG}"
files:
- 'dist/hisscl-*.whl'
- 'dist/hisscl-*.tar.gz'
api_key:
from_secret: gitea_token
when:
event: tag