diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..d087c22 --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -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 + diff --git a/pyproject.toml b/pyproject.toml index caf20fb..ff8d0b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [