This commit is contained in:
parent
e69dd80875
commit
c7249ac59d
2 changed files with 26 additions and 0 deletions
20
.forgejo/workflows/publish.yml
Normal file
20
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
on: push
|
||||
jobs:
|
||||
test-publish:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:alpine
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apk add --no-cache coreutils uv
|
||||
- uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: |
|
||||
uv sync --no-dev
|
||||
uv build
|
||||
- name: publish
|
||||
run: |
|
||||
uv publish --token ${{ secrets.TEST_PYPI_TOKEN }} \
|
||||
--index test_pypi
|
||||
|
|
@ -36,6 +36,12 @@ zona = "zona.cli:main"
|
|||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[[tool.uv.index]]
|
||||
name = "test_pypi"
|
||||
url = "https://test.pypi.org/simple"
|
||||
publish-url = "https://test.pypi.org/legacy/"
|
||||
explicit = true
|
||||
|
||||
[tool.basedpyright]
|
||||
include = ["src", "."]
|
||||
exclude = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue