music-kraken-core/.woodpecker.yml

53 lines
1.3 KiB
YAML
Raw Normal View History

2024-04-15 18:44:19 +00:00
labels:
platform: linux/amd64
steps:
2024-04-16 17:07:26 +00:00
build-stable:
2024-04-15 18:44:19 +00:00
image: python
commands:
- sed -i 's/name = "music-kraken"/name = "music-kraken-stable"/' pyproject.toml
2024-04-15 18:44:19 +00:00
- 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:
- export SETUPTOOLS_SCM_PRETEND_VERSION="$(git describe --abbrev=0 --tags).dev$(git rev-list "$(git describe --abbrev=0 --tags)..HEAD" --count)"
2024-04-15 18:44:19 +00:00
- 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