diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77ba28d..2bce58b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,9 @@ on: - PypiProd - PypiTest default: PypiTest + push: + tags: + - 'v*' permissions: read-all @@ -21,7 +24,7 @@ concurrency: jobs: release: - name: PyPI - ${{ inputs.deploy-to }} + name: PyPI - ${{ inputs.deploy-to || 'PypiProd' }} runs-on: ubuntu-latest permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing @@ -45,5 +48,5 @@ jobs: repository-url: https://test.pypi.org/legacy/ - name: Publish artifacts to PyPI Prod - if: inputs.deploy-to == 'PypiProd' + if: inputs.deploy-to == 'PypiProd' || github.event_name == 'push' uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7b4ae31..6296530 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "importlib-metadata<7,>=6.0", ] name = "dbt-jobs-as-code" -version = "1.0.1" +dynamic = ["version"] description = "A CLI to allow defining dbt Cloud jobs as code" readme = "README.md" keywords = [ @@ -47,6 +47,9 @@ dev = [ [tool.pdm.build] includes = ["src/dbt_jobs_as_code"] +[tool.pdm.version] +source = "scm" + [build-system] requires = ["pdm-backend"] build-backend = "pdm.backend" diff --git a/uv.lock b/uv.lock index 9428949..c429e7c 100644 --- a/uv.lock +++ b/uv.lock @@ -243,7 +243,7 @@ wheels = [ [[package]] name = "dbt-jobs-as-code" -version = "1.0.0" +version = "1.0.1+d20241211" source = { editable = "." } dependencies = [ { name = "beartype" },