Add publish CI job
This commit is contained in:
parent
6d371c13d7
commit
e598e8f1ed
2 changed files with 18 additions and 0 deletions
12
.woodpecker/publish.yaml
Normal file
12
.woodpecker/publish.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: publish package
|
||||||
|
image: ghcr.io/astral-sh/uv:python3.11-alpine
|
||||||
|
commands:
|
||||||
|
- uv build
|
||||||
|
- uv publish --index forgejo
|
||||||
|
environment:
|
||||||
|
UV_PUBLISH_TOKEN:
|
||||||
|
from_secret: publish_token
|
||||||
|
|
@ -23,6 +23,12 @@ sentry-enabled = ["sentry_sdk>=0.19.5"]
|
||||||
[tool.setuptools.packages]
|
[tool.setuptools.packages]
|
||||||
find = {include = ["transip_client"]}
|
find = {include = ["transip_client"]}
|
||||||
|
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "forgejo"
|
||||||
|
url = "https://forgejo.fudiggity.nl/sonny/transip-client/packages"
|
||||||
|
publish-url = "https://forgejo.fudiggity.nl/api/packages/sonny/pypi"
|
||||||
|
explicit = true
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
transip-update = "transip_client.cli:update"
|
transip-update = "transip_client.cli:update"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue