2024-04-15 18:44:19 +00:00
|
|
|
labels:
|
|
|
|
platform: linux/amd64
|
|
|
|
|
2024-04-16 18:07:27 +00:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
steps:
|
2024-04-16 17:07:26 +00:00
|
|
|
build-stable:
|
2024-04-15 18:44:19 +00:00
|
|
|
image: python
|
|
|
|
commands:
|
|
|
|
- python -m pip install -r requirements-dev.txt
|
|
|
|
- python3 -m build
|
|
|
|
environment:
|
|
|
|
- SETUPTOOLS_SCM_PRETEND_VERSION=${CI_COMMIT_TAG}
|
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
build-dev:
|
|
|
|
image: python
|
|
|
|
commands:
|
|
|
|
- python -m pip install -r requirements-dev.txt
|
|
|
|
- python3 -m build
|
|
|
|
when:
|
|
|
|
- event: manual
|
|
|
|
- event: push
|
|
|
|
branch: experimental
|
|
|
|
|
|
|
|
publish-gitea:
|
2024-04-15 20:30:31 +00:00
|
|
|
image: gitea.elara.ws/music-kraken/plugin-twine
|
2024-04-15 18:44:19 +00:00
|
|
|
settings:
|
2024-04-15 20:30:31 +00:00
|
|
|
repository_url: "https://gitea.elara.ws/api/packages/music-kraken/pypi"
|
2024-04-15 18:44:19 +00:00
|
|
|
username:
|
2024-04-15 19:48:56 +00:00
|
|
|
from_secret: gitea_username
|
2024-04-15 18:44:19 +00:00
|
|
|
password:
|
2024-04-15 19:48:56 +00:00
|
|
|
from_secret: gitea_password
|
2024-04-15 18:44:19 +00:00
|
|
|
when:
|
|
|
|
- event: manual
|
|
|
|
- event: tag
|
|
|
|
- event: push
|
|
|
|
branch: experimental
|
2024-04-16 17:01:15 +00:00
|
|
|
|
2024-04-16 17:02:16 +00:00
|
|
|
publish-pypi:
|
|
|
|
image: gitea.elara.ws/music-kraken/plugin-twine
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: pypi_username
|
|
|
|
password:
|
|
|
|
from_secret: pypi_password
|
|
|
|
when:
|
|
|
|
- event: manual
|
|
|
|
- event: tag
|
|
|
|
- event: push
|
|
|
|
branch: experimental
|