Skip to content

Commit

Permalink
Merge pull request #118 from dbt-labs/chore-update-release
Browse files Browse the repository at this point in the history
Chore: Update release process
  • Loading branch information
b-per authored Dec 11, 2024
2 parents 657503f + 1d087ab commit a7047ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- PypiProd
- PypiTest
default: PypiTest
push:
tags:
- 'v*'

permissions: read-all

Expand 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
Expand All @@ -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
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7047ba

Please sign in to comment.