diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..f0a855e --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: "Release" + +on: + push: + tags: + # Publish on any tag starting with a `v`, e.g., v0.1.0 + - v* + +jobs: + run: + runs-on: ubuntu-latest + environment: + name: pypi-publish + permissions: + id-token: write + contents: read + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + - name: Build + run: uv build + - name: Publish + run: uv publish \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 56ed6e9..62d245f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "debmagic" -version = "0.1.0" +version = "0.0.1-alpha.1" description = "build debian packages" license = { file = "LICENSE" } readme = "README.md" @@ -31,7 +31,15 @@ exclude_gitignore = true [tool.ruff] line-length = 120 target-version = "py312" -extend-exclude = [".idea", ".mypy_cache", ".venv*", "docs", "debian", "__pycache__", "*.egg_info"] +extend-exclude = [ + ".idea", + ".mypy_cache", + ".venv*", + "docs", + "debian", + "__pycache__", + "*.egg_info", +] [tool.ruff.lint] select = ["E", "W", "F", "I", "C", "N", "PL", "RUF", "I001"] diff --git a/uv.lock b/uv.lock index b020d33..1b7cb47 100644 --- a/uv.lock +++ b/uv.lock @@ -138,7 +138,7 @@ wheels = [ [[package]] name = "debmagic" -version = "0.1.0" +version = "0.0.1a1" source = { editable = "." } dependencies = [ { name = "python-debian" },